]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
net: lwip: nfs: Print device name based on current udevice
authorJonas Karlman <jonas@kwiboo.se>
Sat, 17 Jan 2026 00:24:38 +0000 (00:24 +0000)
committerJerome Forissier <jerome.forissier@arm.com>
Wed, 4 Feb 2026 08:04:36 +0000 (09:04 +0100)
Use udevice name, similar to other lwip commands, instead of using the
legacy eth_get_name() when printing out the device being used.

Fixes: 230cf3bc2776 ("net: lwip: nfs: Port the NFS code to work with lwIP")
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Jerome Forissier <jerome.forissier@arm.com>
net/lwip/nfs.c

index 27579af8f1fe3569bb308e312aa9edfcc1043136..5fc2d3bd8736fccb3959a220e4eabb103ec38ff9 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <console.h>
 #include <display_options.h>
+#include <dm/device.h>
 #include <env.h>
 #include <image.h>
 #include <linux/kconfig.h>
@@ -116,7 +117,7 @@ static int nfs_loop(struct udevice *udev, ulong addr, char *fname,
        nfs_filename = nfs_basename(fname);
        nfs_path     = nfs_dirname(fname);
 
-       printf("Using %s device\n", eth_get_name());
+       printf("Using %s device\n", udev->name);
 
        printf("File transfer via NFS from server %s; our IP address is %s\n",
               ip4addr_ntoa(&srvip), env_get("ipaddr"));