[PATCH v2 07/13] lwip: dns: do not print IP address when a variable is specified

Tom Rini trini at konsulko.com
Fri Jun 6 16:19:42 CEST 2025


On Fri, Jun 06, 2025 at 08:41:43AM +0200, Jerome Forissier wrote:

> When calling "dns <hostname> <varname>", do not print out the IP address
> of <hostname> onto the console. Print it only when no variable is
> passed. The reason is to be able to call do_dns() from another command
> in need of the DNS services without polluting the output.
> 
> Signed-off-by: Jerome Forissier <jerome.forissier at linaro.org>

As I do not know off-hand, how does this compare with other commands
which can be used to set a variable? I assume it's similar. And then,
oh, we don't have doc/cmd/usage/dns.rst to start with. So, follow-up to
this series please, document the network commands that we have in both
lwip and legacy stack and please note where there's differences if any.
Thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250606/a89d218f/attachment.sig>


More information about the U-Boot mailing list