mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
Fix warnings in cmd_nvedit.c
This printf() string should be %ld now that uintptr_t is defined as long. Also fix a size_t error. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
c9502f4914
commit
79afc88d2c
1 changed files with 2 additions and 2 deletions
|
@ -405,7 +405,7 @@ int setenv_addr(const char *varname, const void *addr)
|
||||||
{
|
{
|
||||||
char str[17];
|
char str[17];
|
||||||
|
|
||||||
sprintf(str, "%x", (uintptr_t)addr);
|
sprintf(str, "%lx", (uintptr_t)addr);
|
||||||
return setenv(varname, str);
|
return setenv(varname, str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -871,7 +871,7 @@ static int do_env_import(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv
|
||||||
" - truncated\n", MAX_ENV_SIZE);
|
" - truncated\n", MAX_ENV_SIZE);
|
||||||
}
|
}
|
||||||
++size;
|
++size;
|
||||||
printf("## Info: input data size = %zd = 0x%zX\n", size, size);
|
printf("## Info: input data size = %zu = 0x%zX\n", size, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (chk) {
|
if (chk) {
|
||||||
|
|
Loading…
Reference in a new issue