summaryrefslogtreecommitdiff
path: root/Userland/DevTools/UserspaceEmulator
diff options
context:
space:
mode:
authorBrendan Coles <bcoles@gmail.com>2021-03-16 06:22:49 +0000
committerAndreas Kling <kling@serenityos.org>2021-03-16 21:48:29 +0100
commitfe97aec8c343d959d5c4c3f2b171e81e261a00d8 (patch)
tree215367094a1bad360a6bcbb06b04d48224a40793 /Userland/DevTools/UserspaceEmulator
parentcad4cc9a2aaefabcf92a81a410a3337b4bf7e408 (diff)
downloadserenity-fe97aec8c343d959d5c4c3f2b171e81e261a00d8.zip
UserspaceEmulator: Print PID in mmap nullptr with MAP_FIXED reportln()
Diffstat (limited to 'Userland/DevTools/UserspaceEmulator')
-rw-r--r--Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp b/Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp
index f40043fa09..ba8fe9b5ec 100644
--- a/Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp
+++ b/Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp
@@ -750,7 +750,7 @@ u32 Emulator::virt$mmap(u32 params_addr)
else {
// mmap(nullptr, …, MAP_FIXED) is technically okay, but tends to be a bug.
// Therefore, refuse to be helpful.
- reportln("\n=={}== \033[31;1mTried to mmap at nullptr with MAP_FIXED.\033[0m, 0x{:x} bytes.", params.size);
+ reportln("\n=={}== \033[31;1mTried to mmap at nullptr with MAP_FIXED.\033[0m, 0x{:x} bytes.", getpid(), params.size);
dump_backtrace();
}
} else {