summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorUlrich Ölmann <u.oelmann@pengutronix.de>2019-02-08 08:15:22 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-02-11 09:12:36 +0100
commited86bd67ef9bda914c99c6ee939de836eff1dc10 (patch)
tree5038637e418fa51351eebfeead43064aa504c5a6 /common
parent0019513c41b0641c6582668f0356663a65ad36d4 (diff)
downloadbarebox-ed86bd67ef9bda914c99c6ee939de836eff1dc10.tar.gz
common: state: fix formatting of "uint32_t" variables
To harmonize the common codebase this ports the following dt-utils commit: | commit 5588a6c32d54bc4a1ef0b9f72807c46dd00bc20e | Author: Ulrich Ölmann <u.oelmann@pengutronix.de> | Date: Sun Feb 3 22:48:07 2019 +0100 | | 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> Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/state/backend_bucket_circular.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/state/backend_bucket_circular.c b/common/state/backend_bucket_circular.c
index ae15fa2..059a531 100644
--- a/common/state/backend_bucket_circular.c
+++ b/common/state/backend_bucket_circular.c
@@ -298,7 +298,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;
}
@@ -345,12 +345,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: