diff options
author | Marvin Borner | 2020-04-15 21:17:41 +0200 |
---|---|---|
committer | Marvin Borner | 2020-04-15 21:17:41 +0200 |
commit | e07894d21a0101b10ee6ad851773b725cbb9150d (patch) | |
tree | 75631b318a9403395fbb3b40abdade8a475cd30b /src/kernel/net/rtl8139.c | |
parent | aa3d1b4689e6dadd982fe1e5ca8af69ca39c617d (diff) |
Used macro magic to implement function-based logs
Diffstat (limited to 'src/kernel/net/rtl8139.c')
-rw-r--r-- | src/kernel/net/rtl8139.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 |