diff options
author | Ulrich Ölmann <u.oelmann@pengutronix.de> | 2019-02-03 22:48:07 +0100 |
---|---|---|
committer | Roland Hieber <rhi@pengutronix.de> | 2019-02-07 12:39:05 +0100 |
commit | 5588a6c32d54bc4a1ef0b9f72807c46dd00bc20e (patch) | |
tree | 4abb4883f3426f12fa78c3fecf4750ec59301c16 | |
parent | 89d033284cb69f834c1f2195c9e99a3d7f585cf1 (diff) | |
download | dt-utils-5588a6c32d54bc4a1ef0b9f72807c46dd00bc20e.tar.gz dt-utils-5588a6c32d54bc4a1ef0b9f72807c46dd00bc20e.tar.xz |
state: fix formatting of "uint32_t" variables
The format specifier "%zd" is for "size_t" typed variables and produces a
warning with gcc, so use "%u" instead.
Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
-rw-r--r-- | src/barebox-state/backend_bucket_circular.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/barebox-state/backend_bucket_circular.c b/src/barebox-state/backend_bucket_circular.c index e96849d..aec17b3 100644 --- a/src/barebox-state/backend_bucket_circular.c +++ b/src/barebox-state/backend_bucket_circular.c @@ -303,7 +303,7 @@ static int state_backend_bucket_circular_write(struct state_backend_storage_buck void *write_buf; if (written_length > circ->max_size) { - dev_err(circ->dev, "Error, state data too big to be written, to write: %d, writesize: %zd, length: %zd, available: %zd\n", + dev_err(circ->dev, "Error, state data too big to be written, to write: %u, writesize: %zd, length: %zd, available: %zd\n", written_length, circ->writesize, len, circ->max_size); return -E2BIG; } @@ -350,12 +350,12 @@ static int state_backend_bucket_circular_write(struct state_backend_storage_buck ret = state_mtd_peb_write(circ, write_buf, offset, written_length); if (ret < 0 && ret != -EUCLEAN) { - dev_err(circ->dev, "Failed to write circular to %lld length %d, %d\n", + dev_err(circ->dev, "Failed to write circular to %lld length %u, %d\n", (long long) offset, written_length, ret); goto out_free; } - dev_dbg(circ->dev, "Written state to PEB %u offset %lld length %d data length %zd\n", + dev_dbg(circ->dev, "Written state to PEB %u offset %lld length %u data length %zd\n", circ->eraseblock, (long long) offset, written_length, len); out_free: |