[U-Boot] [PATCH] Fix compiler warning

Wolfgang Denk wd at denx.de
Wed Feb 4 09:44:15 CET 2009


(shows up only when DENUG is enabled)

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

diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c
index 84ff7e8..bfb1f9f 100644
--- a/drivers/mtd/cfi_flash.c
+++ b/drivers/mtd/cfi_flash.c
@@ -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++);
 }
-- 
1.6.0.6



More information about the U-Boot mailing list