From: Ahreum Jeong Date: Fri, 14 Jul 2017 08:22:01 +0000 (+0900) Subject: Set flag and priority parameters properly in macros in debug.h X-Git-Tag: 1.1_Public_Release~436^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b010b168a413ceb9bb710a95eef65977242e9bb9;p=rtos%2Ftinyara.git Set flag and priority parameters properly in macros in debug.h --- diff --git a/os/include/debug.h b/os/include/debug.h index 7ebbf4c..f94d995 100644 --- a/os/include/debug.h +++ b/os/include/debug.h @@ -135,19 +135,17 @@ Once LOGM is approved, each module should have its own index */ #define LOGM_IDX (0) -#define LOGM_PRI (1) -#define LOGM_EN (2) #ifdef CONFIG_DEBUG_ERROR #ifdef CONFIG_LOGM #define dbg(format, ...) \ - logm(LOGM_EN, LOGM_IDX, LOGM_PRI, EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__) + logm(LOGM_NORMAL, LOGM_IDX, LOGM_ERR, EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__) #define dbg_noarg(format, ...) \ - logm(LOGM_EN, LOGM_IDX, LOGM_PRI, format, ##__VA_ARGS__) + logm(LOGM_NORMAL, LOGM_IDX, LOGM_ERR, format, ##__VA_ARGS__) #define lldbg(format, ...) \ - logm(LOGM_EN, LOGM_IDX, LOGM_PRI, EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__) + logm(LOGM_LOWPUT, LOGM_IDX, LOGM_ERR, EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__) #else /** @@ -179,10 +177,10 @@ Once LOGM is approved, each module should have its own index #ifdef CONFIG_DEBUG_WARN #ifdef CONFIG_LOGM #define wdbg(format, ...) \ - logm(LOGM_EN, LOGM_IDX, LOGM_PRI, EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__) + logm(LOGM_NORMAL, LOGM_IDX, LOGM_WRN, EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__) #define llwdbg(format, ...) \ - logm(LOGM_EN, LOGM_IDX, LOGM_PRI, EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__) + logm(LOGM_LOWPUT, LOGM_IDX, LOGM_WRN, EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__) #else /** @@ -212,10 +210,10 @@ Once LOGM is approved, each module should have its own index #ifdef CONFIG_DEBUG_VERBOSE #ifdef CONFIG_LOGM #define vdbg(format, ...) \ - logm(LOGM_EN, LOGM_IDX, LOGM_PRI, EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__) + logm(LOGM_NORMAL, LOGM_IDX, LOGM_INF, EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__) #define llvdbg(format, ...) \ - logm(LOGM_EN, LOGM_IDX, LOGM_PRI, EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__) + logm(LOGM_LOWPUT, LOGM_IDX, LOGM_INF, EXTRA_FMT format EXTRA_ARG, ##__VA_ARGS__) #else /**