From 237bbfd9688b4ea0329047a85165323b99961345 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Sat, 8 Jul 2023 19:09:51 -0400 Subject: [debug] remove RT_DEBUG_xxx remove RT_DEBUG_THREAD RT_DEBUG_SCHEDULER RT_DEBUG_IPC RT_DEBUG_TIMER RT_DEBUG_IRQ RT_DEBUG_MEM RT_DEBUG_SLAB RT_DEBUG_MEMHEAP --- components/libc/posix/libdl/arch/arm.c | 11 ++++------- components/libc/posix/libdl/arch/riscv.c | 8 ++------ components/libc/posix/libdl/arch/x86.c | 11 ++++------- 3 files changed, 10 insertions(+), 20 deletions(-) (limited to 'components') diff --git a/components/libc/posix/libdl/arch/arm.c b/components/libc/posix/libdl/arch/arm.c index a1ab506a55..2996f2e3c7 100644 --- a/components/libc/posix/libdl/arch/arm.c +++ b/components/libc/posix/libdl/arch/arm.c @@ -13,12 +13,8 @@ #ifdef __arm__ -#define DBG_TAG "kernel.module" -#ifdef RT_DEBUG_MODULE -#define DBG_LVL DBG_LOG -#else -#define DBG_LVL DBG_WARNING -#endif /* defined (RT_DEBUG_MODULE) */ +#define DBG_TAG "posix.libdl.arch" +#define DBG_LVL DBG_INFO #include int dlmodule_relocate(struct rt_dlmodule *module, Elf32_Rel *rel, Elf32_Addr sym_val) @@ -126,4 +122,5 @@ int dlmodule_relocate(struct rt_dlmodule *module, Elf32_Rel *rel, Elf32_Addr sym return 0; } -#endif + +#endif /* __arm__ */ diff --git a/components/libc/posix/libdl/arch/riscv.c b/components/libc/posix/libdl/arch/riscv.c index cf0eb193af..8dd09789c5 100644 --- a/components/libc/posix/libdl/arch/riscv.c +++ b/components/libc/posix/libdl/arch/riscv.c @@ -26,12 +26,8 @@ #define R_RISCV_TLS_TPREL32 10 #define R_RISCV_TLS_TPREL64 11 -#define DBG_TAG "kernel.module" -#ifdef RT_DEBUG_MODULE -#define DBG_LVL DBG_LOG -#else -#define DBG_LVL DBG_WARNING -#endif /* defined (RT_DEBUG_MODULE) */ +#define DBG_TAG "posix.libdl.arch" +#define DBG_LVL DBG_INFO #include int dlmodule_relocate(struct rt_dlmodule *module, Elf_Rel *rel, Elf_Addr sym_val) diff --git a/components/libc/posix/libdl/arch/x86.c b/components/libc/posix/libdl/arch/x86.c index b309ab8c13..1987d45508 100644 --- a/components/libc/posix/libdl/arch/x86.c +++ b/components/libc/posix/libdl/arch/x86.c @@ -13,12 +13,8 @@ #ifdef __i386__ -#define DBG_TAG "kernel.module" -#ifdef RT_DEBUG_MODULE -#define DBG_LVL DBG_LOG -#else -#define DBG_LVL DBG_WARNING -#endif /* defined (RT_DEBUG_MODULE) */ +#define DBG_TAG "posix.libdl.arch" +#define DBG_LVL DBG_INFO #include #define R_X86_64_GLOB_DAT 6 /* Create GOT entry */ @@ -55,4 +51,5 @@ int dlmodule_relocate(struct rt_dlmodule *module, Elf32_Rel *rel, Elf32_Addr sym return 0; } -#endif + +#endif /* __i386__ */ -- cgit v1.3.1