summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-09-17 12:20:59 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2010-09-17 12:20:59 +0200
commit2a2cc3d26d56b834dcc143f2f4e3abbb6bd206c6 (patch)
tree1e4a0467aa6a2cdb7364b27201da00ca3927df92
parent735be1e247563d422c18d955530eb8360e706361 (diff)
downloadrsyslog-2a2cc3d26d56b834dcc143f2f4e3abbb6bd206c6.tar.gz
rsyslog-2a2cc3d26d56b834dcc143f2f4e3abbb6bd206c6.tar.xz
rsyslog-2a2cc3d26d56b834dcc143f2f4e3abbb6bd206c6.zip
minor: added version number to some error messages
-rw-r--r--runtime/debug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/debug.c b/runtime/debug.c
index 64e251e5..5818dda9 100644
--- a/runtime/debug.c
+++ b/runtime/debug.c
@@ -1310,7 +1310,7 @@ dbgGetRuntimeOptions(void)
while(dbgGetRTOptNamVal(&pszOpts, &optname, &optval)) {
if(!strcasecmp((char*)optname, "help")) {
fprintf(stderr,
- "rsyslogd runtime debug support - help requested, rsyslog terminates\n\n"
+ "rsyslogd " VERSION " runtime debug support - help requested, rsyslog terminates\n\n"
"environment variables:\n"
"addional logfile: export RSYSLOG_DEBUGFILE=\"/path/to/file\"\n"
"to set: export RSYSLOG_DEBUG=\"cmd cmd cmd\"\n\n"
@@ -1358,7 +1358,7 @@ dbgGetRuntimeOptions(void)
bAbortTrace = 0;
} else if(!strcasecmp((char*)optname, "filetrace")) {
if(*optval == '\0') {
- fprintf(stderr, "Error: logfile debug option requires filename, "
+ fprintf(stderr, "rsyslogd " VERSION " error: logfile debug option requires filename, "
"e.g. \"logfile=debug.c\"\n");
exit(1);
} else {
@@ -1366,7 +1366,7 @@ dbgGetRuntimeOptions(void)
dbgPrintNameAdd(optval, &printNameFileRoot);
}
} else {
- fprintf(stderr, "Error: invalid debug option '%s', value '%s' - ignored\n",
+ fprintf(stderr, "rsyslogd " VERSION " error: invalid debug option '%s', value '%s' - ignored\n",
optval, optname);
}
}