Logging cleanup
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Fri, 6 Nov 2009 19:05:09 +0000 (19:05 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Fri, 6 Nov 2009 19:05:09 +0000 (19:05 +0000)
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1325 d57e44dd-8a1f-0410-8b47-8ef2f437770f

scst/include/scst_debug.h

index 1197aa5..0ac2c26 100644 (file)
@@ -167,7 +167,6 @@ do {                                                                \
 #define PRINT_BUFF_FLAG(flag, message, buff, len)                      \
 do {                                                                   \
        if (___unlikely(trace_flag & (flag))) {                         \
 #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);                          \
                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)) {                                     \
 #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);                         \
        }                                                               \
                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) {                                  \
 #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);                          \
                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)) {                                      \
 #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);                          \
                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 {                                                                   \
 
 #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 {                                                                   \
        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 {                                                                   \
        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 {                                                                   \
        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 {                                                                   \
        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)
        debug_print_prefix(trace_flag, __LOG_PREFIX, __func__, __LINE__);\
        PRINT(KERN_CONT, format, args);                                 \
 } while (0)