From e07894d21a0101b10ee6ad851773b725cbb9150d Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 15 Apr 2020 21:17:41 +0200 Subject: Used macro magic to implement function-based logs --- src/kernel/net/rtl8139.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/kernel/net/rtl8139.c') diff --git a/src/kernel/net/rtl8139.c b/src/kernel/net/rtl8139.c index c722632..a934e52 100644 --- a/src/kernel/net/rtl8139.c +++ b/src/kernel/net/rtl8139.c @@ -20,7 +20,7 @@ void find_rtl(uint32_t device, uint16_t vendor_id, uint16_t device_id, void *ext void rtl8139_irq_handler(struct regs *r) { - serial_printf("RTL INT!"); + log("RTL INT!"); uint16_t status = inw((uint16_t)(rtl_iobase + 0x3E)); if (!status) return; @@ -28,7 +28,7 @@ void rtl8139_irq_handler(struct regs *r) if (status & 0x01 || status & 0x02) { while ((inw((uint16_t)(rtl_iobase + 0x37)) & 0x01) == 0) { - serial_printf("RECEIVE"); + log("RECEIVE"); // RECEIVE } } @@ -100,4 +100,4 @@ void rtl8139_install() if (rtl8139_init() == 0) info("Installed rtl8139 network driver"); -} +} \ No newline at end of file -- cgit v1.2.3