diff options
author | Brian Gianforcaro <b.gianfo@gmail.com> | 2020-08-16 17:56:33 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-17 09:17:57 +0200 |
commit | 4ca493a86a0b877a460423fbd7c9b091d418d9a9 (patch) | |
tree | 783c47d42a7eec8f34306fd7f471de2d8f6cd34d /DevTools/UserspaceEmulator/MallocTracer.cpp | |
parent | 5a3cc2da8b372543e7f1208cce1d0b98d6563315 (diff) | |
download | serenity-4ca493a86a0b877a460423fbd7c9b091d418d9a9.zip |
UserspaceEmulator: Extra format arguments in MallocTracker, found by Coverity
Diffstat (limited to 'DevTools/UserspaceEmulator/MallocTracer.cpp')
-rw-r--r-- | DevTools/UserspaceEmulator/MallocTracer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/DevTools/UserspaceEmulator/MallocTracer.cpp b/DevTools/UserspaceEmulator/MallocTracer.cpp index cf3c78c071..128dd0da95 100644 --- a/DevTools/UserspaceEmulator/MallocTracer.cpp +++ b/DevTools/UserspaceEmulator/MallocTracer.cpp @@ -138,7 +138,7 @@ void MallocTracer::audit_read(FlatPtr address, size_t size) Emulator::the().dump_backtrace(); report("==%d== Address is %zu byte(s) into block of size %zu, allocated at:\n", getpid(), offset_into_mallocation, mallocation->size); Emulator::the().dump_backtrace(mallocation->malloc_backtrace); - report("==%d== Later freed at:\n", getpid(), offset_into_mallocation, mallocation->size); + report("==%d== Later freed at:\n", getpid()); Emulator::the().dump_backtrace(mallocation->free_backtrace); return; } @@ -173,7 +173,7 @@ void MallocTracer::audit_write(FlatPtr address, size_t size) Emulator::the().dump_backtrace(); report("==%d== Address is %zu byte(s) into block of size %zu, allocated at:\n", getpid(), offset_into_mallocation, mallocation->size); Emulator::the().dump_backtrace(mallocation->malloc_backtrace); - report("==%d== Later freed at:\n", getpid(), offset_into_mallocation, mallocation->size); + report("==%d== Later freed at:\n", getpid()); Emulator::the().dump_backtrace(mallocation->free_backtrace); return; } |