summaryrefslogtreecommitdiff
path: root/drivers/mtd/dataflash.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2008-07-12 14:36:34 +0200
committerWolfgang Denk <wd@denx.de>2008-07-13 16:55:00 +0200
commit0a5676befb0c590212a53f7627fa5d0d8a84bf34 (patch)
treeea6812919abaf744be8c7b5b904dc78244cbaa4d /drivers/mtd/dataflash.c
parent18c8a28aad49803780bd8d52432ded528e37e701 (diff)
downloadu-boot-imx-0a5676befb0c590212a53f7627fa5d0d8a84bf34.zip
u-boot-imx-0a5676befb0c590212a53f7627fa5d0d8a84bf34.tar.gz
u-boot-imx-0a5676befb0c590212a53f7627fa5d0d8a84bf34.tar.bz2
Fix some more printf() format issues.
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'drivers/mtd/dataflash.c')
-rw-r--r--drivers/mtd/dataflash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/dataflash.c b/drivers/mtd/dataflash.c
index a092dc6..0ad48cd 100644
--- a/drivers/mtd/dataflash.c
+++ b/drivers/mtd/dataflash.c
@@ -173,7 +173,7 @@ void AT91F_DataflashSetEnv (void)
if((env & FLAG_SETENV) == FLAG_SETENV) {
start =
dataflash_info[i].Device.area_list[j].start;
- sprintf((char*) s,"%X",start);
+ sprintf((char*) s,"%lX",start);
setenv((char*) area_list[part].label,(char*) s);
}
part++;