From: Heinrich Schuchardt Date: Sun, 6 Jan 2019 10:52:06 +0000 (+0100) Subject: cmd: nvedit: use correct format code X-Git-Tag: v2019.04-rc1~44^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82919517fbda20f616507386919791cb03581d39;p=pandora-u-boot.git cmd: nvedit: use correct format code len is defined as unsigned. So use %u for printf(). Signed-off-by: Heinrich Schuchardt --- diff --git a/cmd/nvedit.c b/cmd/nvedit.c index de16c72c23f..ebaa16b7545 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; }