aboutsummaryrefslogtreecommitdiff
path: root/cmd/ubi.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2018-07-26 11:17:24 -0400
committerTom Rini <trini@konsulko.com>2018-07-26 11:43:30 -0400
commit1341533778dcb865fa55b9514c9ebc77c4609174 (patch)
treed552817281c8755216348b7a1d2a6331e362d2e4 /cmd/ubi.c
parentff6bef48529b8c49cad74371cfaa3b2175146c30 (diff)
downloadu-boot-1341533778dcb865fa55b9514c9ebc77c4609174.zip
u-boot-1341533778dcb865fa55b9514c9ebc77c4609174.tar.gz
u-boot-1341533778dcb865fa55b9514c9ebc77c4609174.tar.bz2
cmd/ubi.c: Fix format warning
On 64bit platforms we would otherwise see: ../cmd/ubi.c: In function 'ubi_volume_read': ../cmd/ubi.c:359:16: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'size_t {aka long unsigned int}' [-Wformat=] Fixes: 68c7025d99db ("cmd: ubi: print load size after establishing volume size") Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'cmd/ubi.c')
-rw-r--r--cmd/ubi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/ubi.c b/cmd/ubi.c
index 0e935e3..913f0f7 100644
--- a/cmd/ubi.c
+++ b/cmd/ubi.c
@@ -356,7 +356,7 @@ int ubi_volume_read(char *volume, char *buf, size_t size)
size = vol->used_bytes;
}
- printf("Read %u bytes from volume %s to %p\n", size, volume, buf);
+ printf("Read %zu bytes from volume %s to %p\n", size, volume, buf);
if (vol->corrupted)
printf("read from corrupted volume %d", vol->vol_id);