From c3e50e6a2101afeadca9568481b6ed4395ae560b Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sun, 26 May 2024 23:42:50 -0400 Subject: kernel: Fixup logging to work with syslog changes This commit removes the KINFO(), KERR(), ... macros Signed-off-by: Ian Moffett --- sys/dev/pci/pci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/dev/pci') diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index 4985dd8..006b428 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -43,6 +43,8 @@ __MODULE_NAME("pci"); __KERNEL_META("$Hyra$: pci.c, Ian Marco Moffett, " "PCI driver core"); +#define pr_trace(fmt, ...) kprintf("pci: " fmt, ##__VA_ARGS__) + static TAILQ_HEAD(, pci_device) device_list; static int access_method = PCI_ACCESS_CAM; @@ -276,7 +278,7 @@ pci_init(void) { TAILQ_INIT(&device_list); - KINFO("Scanning each bus...\n"); + pr_trace("Scanning each bus...\n"); for (uint16_t i = 0; i < 256; ++i) { pci_scan_bus(i); -- cgit v1.2.3