lwip: dns: do not print IP address when a variable is specified
authorJerome Forissier <jerome.forissier@linaro.org>
Wed, 25 Jun 2025 13:19:15 +0000 (15:19 +0200)
committerJerome Forissier <jerome.forissier@linaro.org>
Tue, 8 Jul 2025 09:07:37 +0000 (11:07 +0200)
commit1361d9f4f00ad0a6e481cc947b75e8788982878f
tree6afded8347e847baaee3a8f79e2141283d939fb2
parentd3136d22a6a26b89c62774898154b16ee37385bd
lwip: dns: do not print IP address when a variable is specified

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@linaro.org>
cmd/lwip/dns.c