summaryrefslogtreecommitdiffstats
path: root/plugins/imklog/ksym.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-12-17 13:42:06 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-12-17 13:42:06 +0000
commitcc8d4f19bb722993be5aaa8b6790bec4d43c5684 (patch)
tree5e8152bbbd639d36607c7a9981d8d09c72cc20d4 /plugins/imklog/ksym.c
parent936bbc5071b7a64ca70e4dd9b0c34216738f62b1 (diff)
downloadrsyslog-cc8d4f19bb722993be5aaa8b6790bec4d43c5684.tar.gz
rsyslog-cc8d4f19bb722993be5aaa8b6790bec4d43c5684.tar.xz
rsyslog-cc8d4f19bb722993be5aaa8b6790bec4d43c5684.zip
limited debug output
Diffstat (limited to 'plugins/imklog/ksym.c')
-rw-r--r--plugins/imklog/ksym.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/imklog/ksym.c b/plugins/imklog/ksym.c
index 87712ffd..d8891479 100644
--- a/plugins/imklog/ksym.c
+++ b/plugins/imklog/ksym.c
@@ -231,7 +231,8 @@ extern int InitKsyms(char *mapfile)
fclose(sym_file);
return(0);
}
- dbgprintf("Address: %lx, Type: %c, Symbol: %s\n", address, type, sym);
+ if(dbgPrintSymbols)
+ dbgprintf("Address: %lx, Type: %c, Symbol: %s\n", address, type, sym);
if ( AddSymbol(address, sym) == 0 )
{
@@ -502,7 +503,8 @@ static int CheckMapVersion(char *fname)
fclose(sym_file);
return(0);
}
- dbgprintf("Address: %lx, Type: %c, Symbol: %s\n", address, type, sym);
+ if(dbgPrintSymbols)
+ dbgprintf("Address: %lx, Type: %c, Symbol: %s\n", address, type, sym);
version = CheckVersion(sym);
}
fclose(sym_file);