From 4bdbd879ef650fe6ad4484c9daf56274bb524909 Mon Sep 17 00:00:00 2001 From: "Charles E. Youse" Date: Sun, 23 Jun 2019 20:38:24 +0000 Subject: [PATCH] arch/x86: remove old PRINTK() debugging macro This appears to date all the way back to the initial import and is used in exactly one place if DEBUG is on. Removed. Signed-off-by: Charles E. Youse --- arch/x86/core/ia32/float.c | 3 --- arch/x86/include/kernel_arch_data.h | 7 ------- 2 files changed, 10 deletions(-) diff --git a/arch/x86/core/ia32/float.c b/arch/x86/core/ia32/float.c index 7eb42f63232..66b831be944 100644 --- a/arch/x86/core/ia32/float.c +++ b/arch/x86/core/ia32/float.c @@ -238,9 +238,6 @@ void _FpNotAvailableExcHandler(NANO_ESF *pEsf) * error checking to ensure the exception was not generated in an ISR.) */ - PRINTK("_FpNotAvailableExcHandler() exception handler has been " - "invoked\n"); - /* Enable highest level of FP capability configured into the kernel */ k_float_enable(_current, _FP_USER_MASK); diff --git a/arch/x86/include/kernel_arch_data.h b/arch/x86/include/kernel_arch_data.h index b8f4141e479..e86220efc3e 100644 --- a/arch/x86/include/kernel_arch_data.h +++ b/arch/x86/include/kernel_arch_data.h @@ -117,13 +117,6 @@ extern void z_x86_thread_entry_wrapper(k_thread_entry_t entry, void *p1, void *p2, void *p3); #endif /* _THREAD_WRAPPER_REQUIRED */ -#ifdef DEBUG -#include -#define PRINTK(...) printk(__VA_ARGS__) -#else -#define PRINTK(...) -#endif /* DEBUG */ - #ifdef __cplusplus extern "C" { #endif