diff options
author | Freya Murphy <freya@freyacat.org> | 2025-04-08 10:39:48 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-04-08 10:39:48 -0400 |
commit | 8a19547957a86bed3f58c9abc1ac218d04698faf (patch) | |
tree | ed7ccc6f3a8902915dfe6c9bf763fc45d752b3c4 /kernel/drivers/pci.c | |
parent | fmt (diff) | |
download | comus-8a19547957a86bed3f58c9abc1ac218d04698faf.tar.gz comus-8a19547957a86bed3f58c9abc1ac218d04698faf.tar.bz2 comus-8a19547957a86bed3f58c9abc1ac218d04698faf.zip |
break apart c libaray
Diffstat (limited to '')
-rw-r--r-- | kernel/drivers/pci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/drivers/pci.c b/kernel/drivers/pci.c index 83c47f1..e84ca11 100644 --- a/kernel/drivers/pci.c +++ b/kernel/drivers/pci.c @@ -34,7 +34,7 @@ uint32_t pci_rcfg_d(struct pci_device dev, uint8_t offset) static void print_device(struct pci_table_entry *entry) { - printf( + kprintf( "BUS: %#-4x DEV: %#-4x FUNC: %#-4x ID: %04x:%04x CLASS: %02x:%02x:%02x REV: %#02x\n", entry->device.bus, entry->device.device, entry->device.function, entry->vendor_id, entry->device_id, entry->class, entry->subclass, @@ -134,11 +134,11 @@ void pci_init(void) } } } - printf("PCI DEVICES\n"); + kprintf("PCI DEVICES\n"); for (size_t i = 0; i < pci_table_next; i++) { print_device(&pci_table[i]); } - printf("\n"); + kprintf("\n"); } bool pci_findby_class(struct pci_device *dest, uint8_t class, uint8_t subclass, |