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.
This commit is contained in:
parent
db2ec672b5
commit
9601429ac7
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue