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:
Simon Glass 2011-11-04 06:42:36 +00:00 committed by Stefano Babic
parent c9502f4914
commit 79afc88d2c

View file

@ -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) {