mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 04:26:19 -04:00
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 <wd@denx.de> Cc: Bastian Ruppert <Bastian.Ruppert@Sewerin.de>
This commit is contained in:
parent
5ae0dea3e8
commit
aaf6935b22
@ -739,7 +739,7 @@ int ubifs_load(char *filename, u32 addr, u32 size)
|
|||||||
if (err)
|
if (err)
|
||||||
printf("Error reading file '%s'\n", filename);
|
printf("Error reading file '%s'\n", filename);
|
||||||
else {
|
else {
|
||||||
sprintf(buf, "%lX", size);
|
sprintf(buf, "%X", size);
|
||||||
setenv("filesize", buf);
|
setenv("filesize", buf);
|
||||||
printf("Done\n");
|
printf("Done\n");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user