diff options
author | Richard Braun <rbraun@sceen.net> | 2017-06-10 17:24:04 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-06-10 17:38:47 +0200 |
commit | cc3bcf9dd4b43fccc5bad9d908cbdfd97e415707 (patch) | |
tree | 4bd7aaf9767dea632a1338041f0c6fdd0624f867 /arch/x86/machine/ioapic.c | |
parent | 6ffd7d35391a8b38b87c41482e29de0e27a6d886 (diff) |
Use log functions where appropriate
Diffstat (limited to 'arch/x86/machine/ioapic.c')
-rw-r--r-- | arch/x86/machine/ioapic.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/machine/ioapic.c b/arch/x86/machine/ioapic.c index 245c74c..cd3d2d3 100644 --- a/arch/x86/machine/ioapic.c +++ b/arch/x86/machine/ioapic.c @@ -18,12 +18,12 @@ #include <assert.h> #include <stdbool.h> #include <stdint.h> -#include <stdio.h> #include <kern/error.h> #include <kern/init.h> #include <kern/intr.h> #include <kern/kmem.h> +#include <kern/log.h> #include <kern/panic.h> #include <kern/spinlock.h> #include <machine/cpu.h> @@ -101,7 +101,7 @@ ioapic_alloc_iso(void) struct ioapic_iso *iso; if (ioapic_nr_isos >= ARRAY_SIZE(ioapic_isos)) { - printf("ioapic: error: too many interrupt overrides\n"); + log_err("ioapic: too many interrupt overrides"); return NULL; } @@ -201,8 +201,8 @@ ioapic_create(unsigned int apic_id, uintptr_t addr, unsigned int gsi_base) trap_register(TRAP_INTR_FIRST + i, ioapic_intr); } - printf("ioapic%u: version:%#x gsis:%u-%u\n", ioapic->id, - ioapic->version, ioapic->first_gsi, ioapic->last_gsi); + log_info("ioapic%u: version:%#x gsis:%u-%u", ioapic->id, + ioapic->version, ioapic->first_gsi, ioapic->last_gsi); ioapic_nr_devs++; return ioapic; |