Skip to contentSkip to conversation

net: lwip: remove superfluous newline at tftp help text

PATCH In review Michael Walle 2 participants 3 messages Mar 12, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 net: lwip: remove superfluous newline at tftp help text

The help text has a newline at the end which will lead to an empty line after the tftpboot when printing the help overview. Remove it.

Fixes 4d4d7838127e ("net: lwip: add TFTP support and tftpboot command")
---
 cmd/net-lwip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
cmd/net-lwip.c +1 -1
index 0fd446ecb20..249556243d6 100644
@@ -17,7 +17,7 @@ U_BOOT_CMD(ping, 2, 1, do_ping, "send ICMP ECHO_REQUEST to network host",
 
 #if defined(CONFIG_CMD_TFTPBOOT)
 U_BOOT_CMD(tftpboot, 3, 0, do_tftpb,
-	   "boot image via network using TFTP protocol\n",
+	   "boot image via network using TFTP protocol",
 	   "[loadAddress] [[hostIPaddr:]bootfilename]");
 #endif
 
Signature · 1 line
2.39.5
#1 lore raw

Sorry this should have been individual patches. Please read the subject as "[PATCH 1/1]" or just "[PATCH]".

-michael

Reviewed-by on v1 2/3
#2 lore raw
In reply to Michael Walle
Quoted 14 lines · Michael Walle

The help text has a newline at the end which will lead to an empty line after the tftpboot when printing the help overview. Remove it.

Fixes 4d4d7838127e ("net: lwip: add TFTP support and tftpboot command")
---
 cmd/net-lwip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
cmd/net-lwip.c +0 -0
index 0fd446ecb20..249556243d6 100644

cmd/net-lwip.c U_BOOT_CMD(ping, 2, 1, do_ping, "send ICMP ECHO_REQUEST to network host", · line 23

Quoted 8 lines
cmd/net-lwip.c +1 -1
@@ -17,7 +17,7 @@ U_BOOT_CMD(ping, 2, 1, do_ping, "send ICMP ECHO_REQUEST to network host",
 
 #if defined(CONFIG_CMD_TFTPBOOT)
 U_BOOT_CMD(tftpboot, 3, 0, do_tftpb,
-	   "boot image via network using TFTP protocol\n",
+	   "boot image via network using TFTP protocol",
 	   "[loadAddress] [[hostIPaddr:]bootfilename]");
 #endif
 

Thanks,

Signature · 1 line
Jerome