summaryrefslogtreecommitdiff
path: root/cmd/mtdparts.c
diff options
context:
space:
mode:
authorSteve Rae <steve.rae@raedomain.com>2016-06-29 20:50:59 (GMT)
committerScott Wood <oss@buserror.net>2016-07-25 01:36:29 (GMT)
commit59441ac3c135c412c679bdd1c82c8f2a9b805bbc (patch)
tree8b808deaa368521725e040c3ff04c6686e6fff13 /cmd/mtdparts.c
parentebb7febc92fc628d1f37b96616a1bb21b646d072 (diff)
downloadu-boot-59441ac3c135c412c679bdd1c82c8f2a9b805bbc.tar.xz
mtd: fix compiler warnings
- add missing declaration - update debug output format specifiers Signed-off-by: Steve Rae <steve.rae@raedomain.com>
Diffstat (limited to 'cmd/mtdparts.c')
-rw-r--r--cmd/mtdparts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/mtdparts.c b/cmd/mtdparts.c
index 3f4f334..b9b160d 100644
--- a/cmd/mtdparts.c
+++ b/cmd/mtdparts.c
@@ -1493,7 +1493,7 @@ static int spread_partitions(void)
part = list_entry(pentry, struct part_info, link);
debug("spread_partitions: device = %s%d, partition %d ="
- " (%s) 0x%08x@0x%08x\n",
+ " (%s) 0x%08llx@0x%08llx\n",
MTD_DEV_TYPE(dev->id->type), dev->id->num,
part_num, part->name, part->size,
part->offset);
@@ -2025,7 +2025,7 @@ static int do_mtdparts(cmd_tbl_t *cmdtp, int flag, int argc,
if (!strcmp(&argv[1][3], ".spread")) {
spread_partition(mtd, p, &next_offset);
- debug("increased %s to %d bytes\n", p->name, p->size);
+ debug("increased %s to %llu bytes\n", p->name, p->size);
}
#endif