From c967e941875d60b9d1fb02f6e16102dafe1e35a7 Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Thu, 29 Feb 2024 00:28:34 +0200 Subject: [PATCH] Update ACPI print format --- core/acpi.cpp | 2 +- kshell/commands/lsacpi.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/acpi.cpp b/core/acpi.cpp index adda722..8fb598d 100644 --- a/core/acpi.cpp +++ b/core/acpi.cpp @@ -48,7 +48,7 @@ namespace ACPI if (i == 3) { #ifdef DEBUG - KPrint("ACPI: %s [%s:%s] found at address %#lx", + KPrint("ACPI: %.4s [%.6s:%.8s] found at address %#lx", Signature, SDTHdr->OEMID, SDTHdr->OEMTableID, diff --git a/kshell/commands/lsacpi.cpp b/kshell/commands/lsacpi.cpp index ccf3f50..2a7c99d 100644 --- a/kshell/commands/lsacpi.cpp +++ b/kshell/commands/lsacpi.cpp @@ -29,7 +29,7 @@ void cmd_lsacpi(const char *) ACPI::ACPI *acpi = (ACPI::ACPI *)PowerManager->GetACPI(); foreach (auto Table in acpi->Tables) { - KPrint("%#lx: %s [%s:%s]", + KPrint("%#lx: %.4s [%.6s:%.8s]", Table.second, Table.second->Signature, Table.second->OEMID,