summaryrefslogtreecommitdiff
path: root/net/eth_legacy.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2020-09-14 12:00:18 +0300
committerTom Rini <trini@konsulko.com>2020-09-30 23:48:18 +0300
commitad8959138fbca64d7999c79a8a73dff77f2deb98 (patch)
tree9211cf4a5ce1a81cdd3c844a626fa0f57ad51de9 /net/eth_legacy.c
parentf6a158b996b3abee4e6315b29a488398cb3946df (diff)
downloadu-boot-ad8959138fbca64d7999c79a8a73dff77f2deb98.tar.xz
net: use log_err() for 'No ethernet found' message
Write the 'No ethernet found' message via the log drivers. This allows suppressing it during output via the syslog driver. This fixes the problem reported in: [PATCH 0/4] log: Fix the syslog spam when running tests https://lists.denx.de/pipermail/u-boot/2020-September/426343.html Reported-by: Simon Glass <sjg@chromium.org> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'net/eth_legacy.c')
-rw-r--r--net/eth_legacy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/eth_legacy.c b/net/eth_legacy.c
index 992d1880bf..6e0c058761 100644
--- a/net/eth_legacy.c
+++ b/net/eth_legacy.c
@@ -261,7 +261,7 @@ int eth_initialize(void)
}
if (!eth_devices) {
- puts("No ethernet found.\n");
+ log_err("No ethernet found.\n");
bootstage_error(BOOTSTAGE_ID_NET_ETH_START);
} else {
struct eth_device *dev = eth_devices;
@@ -319,7 +319,7 @@ int eth_init(void)
struct eth_device *old_current;
if (!eth_current) {
- puts("No ethernet found.\n");
+ log_err("No ethernet found.\n");
return -ENODEV;
}