Commit 1341533778dcb865fa55b9514c9ebc77c4609174

Authored by Tom Rini
1 parent ff6bef4852

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -356,7 +356,7 @@
356 356 size = vol->used_bytes;
357 357 }
358 358  
359   - printf("Read %u bytes from volume %s to %p\n", size, volume, buf);
  359 + printf("Read %zu bytes from volume %s to %p\n", size, volume, buf);
360 360  
361 361 if (vol->corrupted)
362 362 printf("read from corrupted volume %d", vol->vol_id);