1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:27:43 +00:00

Everywhere: Replace a bundle of dbg with dbgln.

These changes are arbitrarily divided into multiple commits to make it
easier to find potentially introduced bugs with git bisect.
This commit is contained in:
asynts 2021-01-14 22:37:57 +01:00 committed by Andreas Kling
parent dd727d1fec
commit c6ebca5b45
8 changed files with 68 additions and 106 deletions

View file

@ -26,6 +26,7 @@
#pragma once
#include <AK/Debug.h>
#include <AK/Function.h>
#include <AK/LogStream.h>
#include <AK/String.h>
@ -195,11 +196,10 @@ public:
, m_id(id)
, m_capabilities(capabilities)
{
#ifdef PCI_DEBUG
for (auto capability : capabilities) {
dbg() << address << " has capbility " << capability.m_id;
if constexpr (debug_pci) {
for (auto capability : capabilities)
dbgln("{} has capability {}", address, capability.m_id);
}
#endif
}
Vector<Capability> capabilities() const { return m_capabilities; }