projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b197001
)
cmd: nvedit: use correct format code
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Sun, 6 Jan 2019 10:52:06 +0000
(11:52 +0100)
committer
Tom Rini
<trini@konsulko.com>
Tue, 15 Jan 2019 20:28:43 +0000
(15:28 -0500)
len is defined as unsigned. So use %u for printf().
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
cmd/nvedit.c
patch
|
blob
|
history
diff --git
a/cmd/nvedit.c
b/cmd/nvedit.c
index de16c72c23f2eab154265b9dbed54181645bf77a..ebaa16b75459abc5ae1409adddaa6d40c83cf85a 100644
(file)
--- a/
cmd/nvedit.c
+++ b/
cmd/nvedit.c
@@
-708,8
+708,8
@@
int env_get_f(const char *name, char *buf, unsigned len)
if (n)
*--buf = '\0';
- printf("env_buf [%
d
bytes] too small for value of \"%s\"\n",
-
len, name);
+ printf("env_buf [%
u
bytes] too small for value of \"%s\"\n",
+ len, name);
return n;
}