[U-Boot] [PATCH] cmd_mtdparts.c: fix compiler warning in debug code

Wolfgang Denk wd at denx.de
Wed Sep 2 10:21:20 CEST 2009


Fix warning messages:
cmd_mtdparts.c:1429: warning: format '%08lx' expects type 'long
unsigned int', but argument 6 has type 'u32'
cmd_mtdparts.c:1429: warning: format '%08lx' expects type 'long
unsigned int', but argument 7 has type 'u32'

Signed-off-by: Wolfgang Denk <wd at denx.de>
---
 common/cmd_mtdparts.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/common/cmd_mtdparts.c b/common/cmd_mtdparts.c
index 665995d..b375fea 100644
--- a/common/cmd_mtdparts.c
+++ b/common/cmd_mtdparts.c
@@ -1336,7 +1336,7 @@ static int delete_partition(const char *id)
 
 	if (find_dev_and_part(id, &dev, &pnum, &part) == 0) {
 
-		DEBUGF("delete_partition: device = %s%d, partition %d = (%s) 0x%08lx at 0x%08lx\n",
+		DEBUGF("delete_partition: device = %s%d, partition %d = (%s) 0x%08x at 0x%08x\n",
 				MTD_DEV_TYPE(dev->id->type), dev->id->num, pnum,
 				part->name, part->size, part->offset);
 
-- 
1.6.0.6



More information about the U-Boot mailing list