From 22c434b0fb658cf2af57a18f471e100571630e61 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 15 Mar 2025 14:25:28 +0000 Subject: x86: Add some log categories Add categories for i8259 and bios files, so that log statements have the right category. Signed-off-by: Simon Glass --- arch/x86/lib/bios_interrupts.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'arch/x86/lib/bios_interrupts.c') diff --git a/arch/x86/lib/bios_interrupts.c b/arch/x86/lib/bios_interrupts.c index b2cf1527b1c..3ae6c193ec7 100644 --- a/arch/x86/lib/bios_interrupts.c +++ b/arch/x86/lib/bios_interrupts.c @@ -7,6 +7,8 @@ * Copyright (C) 2007-2009 coresystems GmbH */ +#define LOG_CATEGRORY LOGC_ARCH + #include #include #include "bios_emul.h" -- cgit v1.2.3 From a9ba0080db7fd01b7e36c98fe6cf532a993c5127 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 15 Mar 2025 14:25:29 +0000 Subject: x86: Drop use of CONFIG_REALMODE_DEBUG This option is not actually defined in Kconfig anymore. Use a normal debug print instead, which has a similar effect. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- arch/x86/lib/bios_interrupts.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'arch/x86/lib/bios_interrupts.c') diff --git a/arch/x86/lib/bios_interrupts.c b/arch/x86/lib/bios_interrupts.c index 3ae6c193ec7..e0c2284a901 100644 --- a/arch/x86/lib/bios_interrupts.c +++ b/arch/x86/lib/bios_interrupts.c @@ -200,10 +200,8 @@ int int1a_handler(void) dm_pci_write_config32(dev, reg, dword); break; } -#ifdef CONFIG_REALMODE_DEBUG - debug("0x%x: bus %d devfn 0x%x reg 0x%x val 0x%x\n", func, - bus, devfn, reg, M.x86.R_ECX); -#endif + log_debug("0x%x: bus %d devfn 0x%x reg 0x%x val 0x%x\n", func, + bus, devfn, reg, M.x86.R_ECX); M.x86.R_EAX &= 0xffff00ff; /* Clear AH */ M.x86.R_EAX |= PCIBIOS_SUCCESSFUL; retval = 1; -- cgit v1.2.3