summaryrefslogtreecommitdiff
path: root/common/cmd_nvedit.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-11-04 06:42:36 +0000
committerStefano Babic <sbabic@denx.de>2011-11-22 08:39:24 +0100
commit79afc88d2ccfd78fa8735719bb2648dac3c686b6 (patch)
treea30c2fa95d386d90cbca9c87a4d606a1fecd1102 /common/cmd_nvedit.c
parentc9502f4914c505a2cf8476202fc7d24304cca959 (diff)
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>
Diffstat (limited to 'common/cmd_nvedit.c')
-rw-r--r--common/cmd_nvedit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/cmd_nvedit.c b/common/cmd_nvedit.c
index 7194ade802..3beca5e40f 100644
--- a/common/cmd_nvedit.c
+++ b/common/cmd_nvedit.c
@@ -405,7 +405,7 @@ int setenv_addr(const char *varname, const void *addr)
{
char str[17];
- sprintf(str, "%x", (uintptr_t)addr);
+ sprintf(str, "%lx", (uintptr_t)addr);
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);
}
++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) {