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/acpi | |
parent | aa3d1b4689e6dadd982fe1e5ca8af69ca39c617d (diff) |
Used macro magic to implement function-based logs
Diffstat (limited to 'src/kernel/acpi')
-rw-r--r-- | src/kernel/acpi/acpi.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/kernel/acpi/acpi.c b/src/kernel/acpi/acpi.c index e129a95..8eee5f1 100644 --- a/src/kernel/acpi/acpi.c +++ b/src/kernel/acpi/acpi.c @@ -89,15 +89,15 @@ int acpi_enable() if (i < 300) { return 0; // Successfully enabled ACPI } else { - serial_printf("ACPI couldn't be enabled!"); + log("ACPI couldn't be enabled!"); return -1; // ACPI couldn't be enabled } } else { - serial_printf("ACPI is not supported!"); + log("ACPI is not supported!"); return -1; // ACPI is not supported } } else { - serial_printf("ACPI was already enabled!"); + log("ACPI was already enabled!"); return 0; // ACPI was already enabled } } @@ -166,15 +166,15 @@ int acpi_install() } if (memcmp((unsigned int *)*ptr, "HPET", 4) == 0) { hpet = (struct HPET *)*ptr; - //serial_printf("%c%c%c%c", hpet->signature[0], hpet->signature[1], + //log("%c%c%c%c", hpet->signature[0], hpet->signature[1], //hpet->signature[2], hpet->signature[3]); - //serial_printf("%d", hpet->legacy_replacement); - //serial_printf("%d", hpet->address.address); + //log("%d", hpet->legacy_replacement); + //log("%d", hpet->address.address); } ptr++; } // Else: no valid FADT present } else { - serial_printf("ACPI is not supported!"); + log("ACPI is not supported!"); } return success == 1 ? 0 : -1; |