diff --git a/Kernel/CoreDump.h b/Kernel/CoreDump.h index ae2fdd3809..2b975a6e25 100644 --- a/Kernel/CoreDump.h +++ b/Kernel/CoreDump.h @@ -59,7 +59,7 @@ private: Process& m_process; NonnullRefPtr m_fd; - size_t m_num_program_headers; + const size_t m_num_program_headers; }; } diff --git a/Kernel/Syscalls/profiling.cpp b/Kernel/Syscalls/profiling.cpp index 47e7536669..d49516c4fd 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, String::formatted("/tmp/profiler_coredumps/%d", pid)); + auto coredump = CoreDump::create(*process, String::formatted("/tmp/profiler_coredumps/{}", pid)); coredump->write(); return 0; }