summaryrefslogtreecommitdiff
path: root/Kernel/Net/NetworkingManagement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Net/NetworkingManagement.cpp')
-rw-r--r--Kernel/Net/NetworkingManagement.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Kernel/Net/NetworkingManagement.cpp b/Kernel/Net/NetworkingManagement.cpp
index c8b1ae7bb0..d0d95a123e 100644
--- a/Kernel/Net/NetworkingManagement.cpp
+++ b/Kernel/Net/NetworkingManagement.cpp
@@ -117,7 +117,8 @@ UNMAP_AFTER_INIT ErrorOr<NonnullLockRefPtr<NetworkAdapter>> NetworkingManagement
return adapter;
}
}
- return Error::from_string_literal("Unsupported network adapter");
+ dmesgln("Networking: Failed to initialize device {}, unsupported network adapter", device_identifier.address());
+ return Error::from_errno(ENODEV);
}
bool NetworkingManagement::initialize()