]> git.sur5r.net Git - u-boot/commitdiff
cmd_mtdparts.c: fix compiler warning in debug code
authorWolfgang Denk <wd@denx.de>
Wed, 2 Sep 2009 08:21:20 +0000 (10:21 +0200)
committerTom Rix <Tom.Rix@windriver.com>
Sat, 3 Oct 2009 14:04:13 +0000 (09:04 -0500)
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@denx.de>
common/cmd_mtdparts.c

index 665995d16bfffd9470368996c51e8c7fdf10bd04..b375feaad190023e9c11c4084af495e8dbbddffb 100644 (file)
@@ -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@0x%08lx\n",
+               DEBUGF("delete_partition: device = %s%d, partition %d = (%s) 0x%08x@0x%08x\n",
                                MTD_DEV_TYPE(dev->id->type), dev->id->num, pnum,
                                part->name, part->size, part->offset);