Skip to contentSkip to conversation

Fix compiler warning

PATCH New Wolfgang Denk 2 participants 3 messages Feb 4, 2009 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix compiler warning

(shows up only when DENUG is enabled)

---
 drivers/mtd/cfi_flash.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mtd/cfi_flash.c +1 -1
index 84ff7e8..bfb1f9f 100644
@@ -354,7 +354,7 @@ static void print_longlong (char *str, unsigned long long data)
 	int i;
 	char *cp;
 
-	cp = (unsigned char *) &data;
+	cp = (char *) &data;
 	for (i = 0; i < 8; i++)
 		sprintf (&str[i * 2], "%2.2x", *cp++);
 }
Signature · 1 line
1.6.0.6
#2 lore raw

PATCH 1/1 Fix compiler warning

Dear Jean-Christophe PLAGNIOL-VILLARD,

Quoted 3 lines · In message <[email protected]> you wrote:
Quoted 1 line · Wolfgang Denk

(shows up only when DENUG is enabled)

DEBUG? :)

Right. Thanks for pointing out.

Will fix this when applying the patch (no reposting planned).

Best regards,

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
You can fool some of the people all of the time, and You can fool all
of the people some of the time, but You can't fool mom.