Skip to contentSkip to conversation

cmd_mtdparts.c: fix compiler warning in debug code

PATCH New Wolfgang Denk 1 participant 2 messages Sep 2, 2009 – Sep 4, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cmd_mtdparts.c: fix compiler warning in debug code

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'

---
 common/cmd_mtdparts.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
common/cmd_mtdparts.c +1 -1
index 665995d..b375fea 100644
@@ -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);
 
Signature · 1 line
1.6.0.6
author Applied
#1 lore raw

PATCH 1/1 cmd_mtdparts.c: fix compiler warning in debug code

Quoted 10 lines · In message <[email protected]> you wrote:

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'

---
 common/cmd_mtdparts.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Applied.

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
All he had was nothing, but that was something, and now it  had  been
taken away.                             - Terry Pratchett, _Sourcery_