diff options
author | Albert Ou <albert@sifive.com> | 2016-11-30 15:06:04 -0800 |
---|---|---|
committer | Albert Ou <albert@sifive.com> | 2016-11-30 15:06:04 -0800 |
commit | 9601429ac745aec316b0c4a9d340bb1d54e75e16 (patch) | |
tree | 6eb59c33fa8f2ebc61128fbf81af0bfaa97211d7 | |
parent | db2ec672b5b911ffb80732099c0ec39c7780b3c3 (diff) | |
download | riscv-openocd-9601429ac745aec316b0c4a9d340bb1d54e75e16.zip riscv-openocd-9601429ac745aec316b0c4a9d340bb1d54e75e16.tar.gz riscv-openocd-9601429ac745aec316b0c4a9d340bb1d54e75e16.tar.bz2 |
Use portable format specifier for size_t
This fixes a gcc warning [-Werror=format] on an i686-pc-linux-gnu host,
which defines size_t as unsigned int instead of long int.
-rw-r--r-- | src/flash/nor/fespi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/fespi.c b/src/flash/nor/fespi.c index 6badc81..1dfd785 100644 --- a/src/flash/nor/fespi.c +++ b/src/flash/nor/fespi.c @@ -835,7 +835,7 @@ static int fespi_write(struct flash_bank *bank, const uint8_t *buffer, struct working_area *algorithm_wa; if (target_alloc_working_area(target, sizeof(algorithm_bin), &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)); algorithm_wa = NULL; } else { |