]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
UBIFS: fix warning: format '%lX' expects type 'long unsigned int'
authorWolfgang Denk <wd@denx.de>
Fri, 9 Sep 2011 22:41:14 +0000 (00:41 +0200)
committerWolfgang Denk <wd@denx.de>
Fri, 9 Sep 2011 23:10:32 +0000 (01:10 +0200)
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 <wd@denx.de>
Cc: Bastian Ruppert <Bastian.Ruppert@Sewerin.de>
fs/ubifs/ubifs.c

index 2e6313a89f6cb00be9c4d37729a9dd4f0ed9eb33..604eb8fdc213ecf1482222597ebf0663c0776bf7 100644 (file)
@@ -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");
        }