cmd: nvedit: use correct format code
PATCH 1/1 cmd: nvedit: use correct format code
len is defined as unsigned. So use %u for printf().
Signed-off-by Heinrich Schuchardt <[email protected]>
--- cmd/nvedit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
cmd/nvedit.c +2 -2
@@ -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; }
Signature · 1 line
2.20.1
PATCH 1/1 cmd: nvedit: use correct format code
Quoted 3 lines · Heinrich Schuchardt
len is defined as unsigned. So use %u for
printf().Signed-off-by Heinrich Schuchardt <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190115/686fc2ae/attachment.sig>