提交 79afc88d 编写于 作者: S Simon Glass 提交者: Stefano Babic

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: NSimon Glass <sjg@chromium.org>
Acked-by: NMike Frysinger <vapier@gentoo.org>
上级 c9502f49
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册