summaryrefslogtreecommitdiff
path: root/Kernel/Devices
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Devices')
-rw-r--r--Kernel/Devices/Device.cpp7
-rw-r--r--Kernel/Devices/Device.h1
2 files changed, 7 insertions, 1 deletions
diff --git a/Kernel/Devices/Device.cpp b/Kernel/Devices/Device.cpp
index 601ff9fa71..39f7c16f4b 100644
--- a/Kernel/Devices/Device.cpp
+++ b/Kernel/Devices/Device.cpp
@@ -14,7 +14,12 @@ Device::~Device()
VFS::the().unregister_device({}, *this);
}
-String Device::absolute_path(const FileDescription&) const
+String Device::absolute_path() const
{
return String::format("device:%u,%u (%s)", m_major, m_minor, class_name());
}
+
+String Device::absolute_path(const FileDescription&) const
+{
+ return absolute_path();
+}
diff --git a/Kernel/Devices/Device.h b/Kernel/Devices/Device.h
index 467a81e5ad..9455d4e4a3 100644
--- a/Kernel/Devices/Device.h
+++ b/Kernel/Devices/Device.h
@@ -20,6 +20,7 @@ public:
unsigned minor() const { return m_minor; }
virtual String absolute_path(const FileDescription&) const override;
+ virtual String absolute_path() const;
uid_t uid() const { return m_uid; }
uid_t gid() const { return m_gid; }