From ac3f04117dd4c4dae56b16856f2fdb4016423404 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Wed, 28 Oct 2009 19:54:57 +0000 Subject: [PATCH] Comments why we don't print prefix on debug traces added git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1291 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/scst_debug.h | 5 +++++ usr/fileio/debug.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/scst/include/scst_debug.h b/scst/include/scst_debug.h index 33309b0a1..1197aa579 100644 --- a/scst/include/scst_debug.h +++ b/scst/include/scst_debug.h @@ -128,6 +128,11 @@ #define ___unlikely(a) unlikely(a) #endif +/* + * We don't print prefix for debug traces to not put additional preasure + * on the logging system in case of a lot of logging. + */ + extern int debug_print_prefix(unsigned long trace_flag, const char *prefix, const char *func, int line); extern void debug_print_buffer(const void *data, int len); diff --git a/usr/fileio/debug.h b/usr/fileio/debug.h index 44e7fcc4f..eb629ae18 100644 --- a/usr/fileio/debug.h +++ b/usr/fileio/debug.h @@ -75,6 +75,11 @@ extern unsigned long trace_flag; extern int debug_init(void); extern void debug_done(void); +/* + * We don't print prefix for debug traces to not put additional preasure + * on the logging system in case of a lot of logging. + */ + extern int debug_print_prefix(unsigned long trace_flag, const char *prefix, const char *func, int line); extern void debug_print_buffer(const void *data, int len);