Merge pull request #5 from sifive/format-warning

Use portable format specifier for size_t
This commit is contained in:
Tim Newsome 2016-11-30 16:01:43 -08:00 committed by GitHub
commit 52d7d49d6c
1 changed files with 1 additions and 1 deletions

View File

@ -835,7 +835,7 @@ static int fespi_write(struct flash_bank *bank, const uint8_t *buffer,
struct working_area *algorithm_wa; struct working_area *algorithm_wa;
if (target_alloc_working_area(target, sizeof(algorithm_bin), if (target_alloc_working_area(target, sizeof(algorithm_bin),
&algorithm_wa) != ERROR_OK) { &algorithm_wa) != ERROR_OK) {
LOG_WARNING("Couldn't allocate %ld-byte working area.", LOG_WARNING("Couldn't allocate %zd-byte working area.",
sizeof(algorithm_bin)); sizeof(algorithm_bin));
algorithm_wa = NULL; algorithm_wa = NULL;
} else { } else {