cmd: nvedit: use correct format code
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 6 Jan 2019 10:52:06 +0000 (11:52 +0100)
committerTom 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

index de16c72..ebaa16b 100644 (file)
@@ -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;
        }