diff options
| author | Jonas Karlman <[email protected]> | 2026-01-17 00:24:38 +0000 |
|---|---|---|
| committer | Jerome Forissier <[email protected]> | 2026-02-04 09:04:36 +0100 |
| commit | f3b600efb339e5419cb10cd8177d84c7c36ee4cd (patch) | |
| tree | 794f9c1796ffe4c30c437060138a3c05cbd1e2ae /net | |
| parent | 35ee795d63977781960da9003a33ee78edb00da4 (diff) | |
net: lwip: nfs: Print device name based on current udevice
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 <[email protected]>
Reviewed-by: Jerome Forissier <[email protected]>
Diffstat (limited to 'net')
| -rw-r--r-- | net/lwip/nfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/lwip/nfs.c b/net/lwip/nfs.c index 27579af8f1f..5fc2d3bd873 100644 --- a/net/lwip/nfs.c +++ b/net/lwip/nfs.c @@ -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")); |
