summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-06-12 08:13:59 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-06-12 08:13:59 +0200
commit23153f03afeced64185f1ed1b4af9b1d164a2436 (patch)
tree0c3f605de8ae2bfa0d015a37504472833e6113bf /plugins
parentaac87110a2db4c53e58ef9fcf992242580ae136f (diff)
downloadrsyslog-23153f03afeced64185f1ed1b4af9b1d164a2436.tar.gz
rsyslog-23153f03afeced64185f1ed1b4af9b1d164a2436.tar.xz
rsyslog-23153f03afeced64185f1ed1b4af9b1d164a2436.zip
changed default for i$KlogSymbolLookup to "off"
Diffstat (limited to 'plugins')
-rw-r--r--plugins/imklog/imklog.c4
-rw-r--r--plugins/imklog/linux.c1
2 files changed, 2 insertions, 3 deletions
diff --git a/plugins/imklog/imklog.c b/plugins/imklog/imklog.c
index 331805b3..38f2a23c 100644
--- a/plugins/imklog/imklog.c
+++ b/plugins/imklog/imklog.c
@@ -63,7 +63,7 @@ DEFobjCurrIf(datetime)
int dbgPrintSymbols = 0; /* this one is extern so the helpers can access it! */
int symbols_twice = 0;
int use_syscall = 0;
-int symbol_lookup = 1;
+int symbol_lookup = 0; /* on recent kernels > 2.6, the kernel does this */
int bPermitNonKernel = 0; /* permit logging of messages not having LOG_KERN facility */
int iFacilIntMsg; /* the facility to use for internal messages (set by driver) */
/* TODO: configuration for the following directives must be implemented. It
@@ -240,7 +240,7 @@ static rsRetVal resetConfigVariables(uchar __attribute__((unused)) *pp, void __a
symbols_twice = 0;
use_syscall = 0;
symfile = NULL;
- symbol_lookup = 1;
+ symbol_lookup = 0;
bPermitNonKernel = 0;
iFacilIntMsg = klogFacilIntMsg();
return RS_RET_OK;
diff --git a/plugins/imklog/linux.c b/plugins/imklog/linux.c
index 31dae2cd..25f012c3 100644
--- a/plugins/imklog/linux.c
+++ b/plugins/imklog/linux.c
@@ -504,7 +504,6 @@ rsRetVal klogWillRun(void)
symbol_lookup = (InitKsyms(symfile) == 1);
symbol_lookup |= InitMsyms();
if (symbol_lookup == 0) {
- //dbgprintf("cannot find any symbols, turning off symbol lookups\n");
imklogLogIntMsg(LOG_WARNING, "cannot find any symbols, turning off symbol lookups");
}
}