summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls/profiling.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-12-15 11:17:01 +0100
committerAndreas Kling <kling@serenityos.org>2020-12-15 11:17:01 +0100
commitff8bf4db8d044a3e0c15380bed067b00143e5086 (patch)
tree21c4c87117feee5b4acae423a0c7d29eea270fc4 /Kernel/Syscalls/profiling.cpp
parentbcabbbda8b0e4446c3d38b2772f3dee5b3dcc4cf (diff)
downloadserenity-ff8bf4db8d044a3e0c15380bed067b00143e5086.zip
Kernel: Don't take LexicalPath as argument
LexicalPath is a big and heavy class that's really meant as a helper for extracting parts of a path, not for storage or passing around. Instead, pass paths around as strings and use LexicalPath locally as needed.
Diffstat (limited to 'Kernel/Syscalls/profiling.cpp')
-rw-r--r--Kernel/Syscalls/profiling.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/profiling.cpp b/Kernel/Syscalls/profiling.cpp
index cb6ded68f4..47e7536669 100644
--- a/Kernel/Syscalls/profiling.cpp
+++ b/Kernel/Syscalls/profiling.cpp
@@ -60,7 +60,7 @@ int Process::sys$profiling_disable(pid_t pid)
// We explicitly unlock here because we can't hold the lock when writing the coredump VFS
lock.unlock();
- auto coredump = CoreDump::create(*process, LexicalPath { String::format("/tmp/profiler_coredumps/%d", pid) });
+ auto coredump = CoreDump::create(*process, String::formatted("/tmp/profiler_coredumps/%d", pid));
coredump->write();
return 0;
}