mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 18:51:27 +00:00
Logging cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1325 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -167,7 +167,6 @@ do { \
|
||||
#define PRINT_BUFF_FLAG(flag, message, buff, len) \
|
||||
do { \
|
||||
if (___unlikely(trace_flag & (flag))) { \
|
||||
PRINTN(KERN_INFO, "%s", ""); \
|
||||
debug_print_prefix(trace_flag, NULL, __func__, __LINE__);\
|
||||
PRINT(KERN_CONT, "%s:", message); \
|
||||
debug_print_buffer(buff, len); \
|
||||
@@ -187,7 +186,6 @@ do { \
|
||||
#define TRACE_DBG_FLAG(trace, format, args...) \
|
||||
do { \
|
||||
if (trace_flag & (trace)) { \
|
||||
PRINTN(KERN_INFO, "%s", ""); \
|
||||
debug_print_prefix(trace_flag, NULL, __func__, __LINE__);\
|
||||
PRINT(KERN_CONT, format, args); \
|
||||
} \
|
||||
@@ -204,7 +202,6 @@ do { \
|
||||
#define TRACE_BUFFER(message, buff, len) \
|
||||
do { \
|
||||
if (trace_flag & TRACE_BUFF) { \
|
||||
PRINTN(KERN_INFO, "%s", ""); \
|
||||
debug_print_prefix(trace_flag, NULL, __func__, __LINE__);\
|
||||
PRINT(KERN_CONT, "%s:", message); \
|
||||
debug_print_buffer(buff, len); \
|
||||
@@ -214,7 +211,6 @@ do { \
|
||||
#define TRACE_BUFF_FLAG(flag, message, buff, len) \
|
||||
do { \
|
||||
if (trace_flag & (flag)) { \
|
||||
PRINTN(KERN_INFO, "%s", ""); \
|
||||
debug_print_prefix(trace_flag, NULL, __func__, __LINE__);\
|
||||
PRINT(KERN_CONT, "%s:", message); \
|
||||
debug_print_buffer(buff, len); \
|
||||
@@ -223,35 +219,30 @@ do { \
|
||||
|
||||
#define PRINT_LOG_FLAG(log_flag, format, args...) \
|
||||
do { \
|
||||
PRINTN(KERN_INFO, "%s", ""); \
|
||||
debug_print_prefix(trace_flag, __LOG_PREFIX, __func__, __LINE__);\
|
||||
PRINT(KERN_CONT, format, args); \
|
||||
} while (0)
|
||||
|
||||
#define PRINT_WARNING(format, args...) \
|
||||
do { \
|
||||
PRINTN(KERN_INFO, "%s", ""); \
|
||||
debug_print_prefix(trace_flag, __LOG_PREFIX, __func__, __LINE__);\
|
||||
PRINT(KERN_CONT, "***WARNING***: " format, args); \
|
||||
} while (0)
|
||||
|
||||
#define PRINT_ERROR(format, args...) \
|
||||
do { \
|
||||
PRINTN(KERN_INFO, "%s", ""); \
|
||||
debug_print_prefix(trace_flag, __LOG_PREFIX, __func__, __LINE__);\
|
||||
PRINT(KERN_CONT, "***ERROR***: " format, args); \
|
||||
} while (0)
|
||||
|
||||
#define PRINT_CRIT_ERROR(format, args...) \
|
||||
do { \
|
||||
PRINTN(KERN_INFO, "%s", ""); \
|
||||
debug_print_prefix(trace_flag, __LOG_PREFIX, __func__, __LINE__);\
|
||||
PRINT(KERN_CONT, "***CRITICAL ERROR***: " format, args); \
|
||||
} while (0)
|
||||
|
||||
#define PRINT_INFO(format, args...) \
|
||||
do { \
|
||||
PRINTN(KERN_INFO, "%s", ""); \
|
||||
debug_print_prefix(trace_flag, __LOG_PREFIX, __func__, __LINE__);\
|
||||
PRINT(KERN_CONT, format, args); \
|
||||
} while (0)
|
||||
|
||||
Reference in New Issue
Block a user