mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:27:35 +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:
parent
dd727d1fec
commit
c6ebca5b45
8 changed files with 68 additions and 106 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue