diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2021-11-29 03:03:33 -0800 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-30 11:16:35 +0100 |
commit | e626d7098d6c3afbe83f2400b55565f8bc6f065a (patch) | |
tree | 6f167afc97f41ff1dae5ba15725f2121d1c8f558 | |
parent | 1f65728d8b931c80ba15755fde0080a4e8dc27d9 (diff) | |
download | serenity-e626d7098d6c3afbe83f2400b55565f8bc6f065a.zip |
Kernel: Handle string format errors in Device::pseudo_path(..) :^)
-rw-r--r-- | Kernel/Devices/Device.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Devices/Device.cpp b/Kernel/Devices/Device.cpp index 57ba22bd29..766086ce83 100644 --- a/Kernel/Devices/Device.cpp +++ b/Kernel/Devices/Device.cpp @@ -145,7 +145,7 @@ Device::~Device() ErrorOr<NonnullOwnPtr<KString>> Device::pseudo_path(const OpenFileDescription&) const { - return KString::try_create(String::formatted("device:{},{}", major(), minor())); + return KString::formatted("device:{},{}", major(), minor()); } void Device::process_next_queued_request(Badge<AsyncDeviceRequest>, const AsyncDeviceRequest& completed_request) |