From: Wolfgang Denk Date: Fri, 9 Sep 2011 22:41:14 +0000 (+0200) Subject: UBIFS: fix warning: format '%lX' expects type 'long unsigned int' X-Git-Tag: v2011.09-rc1~10 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=aaf6935b223ccf746d1504661d2c40bf73698d3b;p=oweals%2Fu-boot.git UBIFS: fix warning: format '%lX' expects type 'long unsigned int' Commit 46d7274 "UBIFS: Change ubifsload to set the filesize variable" introduced the follwing compiler warning: ubifs.c: In function 'ubifs_load': ubifs.c:742: warning: format '%lX' expects type 'long unsigned int', but argument 3 has type 'u32' Signed-off-by: Wolfgang Denk Cc: Bastian Ruppert --- diff --git a/fs/ubifs/ubifs.c b/fs/ubifs/ubifs.c index 2e6313a89f..604eb8fdc2 100644 --- a/fs/ubifs/ubifs.c +++ b/fs/ubifs/ubifs.c @@ -739,7 +739,7 @@ int ubifs_load(char *filename, u32 addr, u32 size) if (err) printf("Error reading file '%s'\n", filename); else { - sprintf(buf, "%lX", size); + sprintf(buf, "%X", size); setenv("filesize", buf); printf("Done\n"); }