Skip to contentSkip to conversation

cmd: nvedit: use correct format code

PATCH New Heinrich Schuchardt 2 participants 2 messages Jan 6, 2019 – Jan 16, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cmd: nvedit: use correct format code

len is defined as unsigned. So use %u for printf().

---
 cmd/nvedit.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
cmd/nvedit.c +2 -2
index de16c72c23..ebaa16b754 100644
@@ -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
#1 lore raw

PATCH 1/1 cmd: nvedit: use correct format code

Quoted 3 lines · Heinrich Schuchardt

len is defined as unsigned. So use %u for printf().

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>