1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21: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:
asynts 2021-01-14 00:10:32 +01:00 committed by Andreas Kling
parent 78b2be5a2a
commit 67583bc424
8 changed files with 69 additions and 55 deletions

View file

@ -24,6 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <AK/Debug.h>
#include <Kernel/Arch/i386/CPU.h>
#include <Kernel/Interrupts/IRQHandler.h>
#include <Kernel/Interrupts/InterruptManagement.h>
@ -45,9 +46,7 @@ IRQHandler::~IRQHandler()
bool IRQHandler::eoi()
{
#ifdef IRQ_DEBUG
dbg() << "EOI IRQ " << interrupt_number();
#endif
dbgln<debug_irq>("EOI IRQ {}", interrupt_number());
if (!m_shared_with_others) {
ASSERT(!m_responsible_irq_controller.is_null());
m_responsible_irq_controller->eoi(*this);
@ -58,9 +57,7 @@ bool IRQHandler::eoi()
void IRQHandler::enable_irq()
{
#ifdef IRQ_DEBUG
dbg() << "Enable IRQ " << interrupt_number();
#endif
dbgln<debug_irq>("Enable IRQ {}", interrupt_number());
m_enabled = true;
if (!m_shared_with_others)
m_responsible_irq_controller->enable(*this);
@ -68,9 +65,7 @@ void IRQHandler::enable_irq()
void IRQHandler::disable_irq()
{
#ifdef IRQ_DEBUG
dbg() << "Disable IRQ " << interrupt_number();
#endif
dbgln<debug_irq>("Disable IRQ {}", interrupt_number());
m_enabled = false;
if (!m_shared_with_others)
m_responsible_irq_controller->disable(*this);