aboutsummaryrefslogtreecommitdiff
path: root/cmd/nvedit.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2019-01-06 11:52:06 +0100
committerTom Rini <trini@konsulko.com>2019-01-15 15:28:43 -0500
commit82919517fbda20f616507386919791cb03581d39 (patch)
tree2067426b6b5bbfe9aa9b6d308470117e8471eb97 /cmd/nvedit.c
parentb1970013d4da5579cf33f0da84715d49d9690d49 (diff)
downloadu-boot-82919517fbda20f616507386919791cb03581d39.zip
u-boot-82919517fbda20f616507386919791cb03581d39.tar.gz
u-boot-82919517fbda20f616507386919791cb03581d39.tar.bz2
cmd: nvedit: use correct format code
len is defined as unsigned. So use %u for printf(). Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'cmd/nvedit.c')
-rw-r--r--cmd/nvedit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/nvedit.c b/cmd/nvedit.c
index de16c72..ebaa16b 100644
--- 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;
}