summaryrefslogtreecommitdiff
path: root/Kernel/Devices
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-01-21 16:14:39 +0100
committerAndreas Kling <kling@serenityos.org>2020-01-21 16:16:20 +0100
commitf38cfb3562cfc67ce1f878d5583c443753b9a9f2 (patch)
tree103cc43e4ea08f6d425d1d0c6b999caa387ecdf6 /Kernel/Devices
parent5dd5d5ca4ea265e055115ca5cbf73057574a632c (diff)
downloadserenity-f38cfb3562cfc67ce1f878d5583c443753b9a9f2.zip
Kernel: Tidy up debug logging a little bit
When using dbg() in the kernel, the output is automatically prefixed with [Process(PID:TID)]. This makes it a lot easier to understand which thread is generating the output. This patch also cleans up some common logging messages and removes the now-unnecessary "dbg() << *current << ..." pattern.
Diffstat (limited to 'Kernel/Devices')
-rw-r--r--Kernel/Devices/BXVGADevice.cpp4
-rw-r--r--Kernel/Devices/MBVGADevice.cpp4
2 files changed, 2 insertions, 6 deletions
diff --git a/Kernel/Devices/BXVGADevice.cpp b/Kernel/Devices/BXVGADevice.cpp
index 0d1e30fb36..714096f586 100644
--- a/Kernel/Devices/BXVGADevice.cpp
+++ b/Kernel/Devices/BXVGADevice.cpp
@@ -123,9 +123,7 @@ KResultOr<Region*> BXVGADevice::mmap(Process& process, FileDescription&, Virtual
0,
"BXVGA Framebuffer",
prot);
- dbgprintf("BXVGA: %s(%u) created Region{%p} with size %u for framebuffer P%x with vaddr V%p\n",
- process.name().characters(), process.pid(),
- region, region->size(), m_framebuffer_address.as_ptr(), region->vaddr().get());
+ dbg() << "BXVGADevice: mmap with size " << region->size() << " at " << region->vaddr();
ASSERT(region);
return region;
}
diff --git a/Kernel/Devices/MBVGADevice.cpp b/Kernel/Devices/MBVGADevice.cpp
index 24f678bf3f..c8ca9f6177 100644
--- a/Kernel/Devices/MBVGADevice.cpp
+++ b/Kernel/Devices/MBVGADevice.cpp
@@ -62,9 +62,7 @@ KResultOr<Region*> MBVGADevice::mmap(Process& process, FileDescription&, Virtual
0,
"MBVGA Framebuffer",
prot);
- dbgprintf("MBVGA: %s(%u) created Region{%p} with size %u for framebuffer P%x with vaddr V%p\n",
- process.name().characters(), process.pid(),
- region, region->size(), m_framebuffer_address.as_ptr(), region->vaddr().get());
+ dbg() << "MBVGADevice: mmap with size " << region->size() << " at " << region->vaddr();
ASSERT(region);
return region;
}