minor: added version number to some error messages

This commit is contained in:
Rainer Gerhards 2010-09-17 12:20:59 +02:00
parent 735be1e247
commit 2a2cc3d26d

View File

@ -1310,7 +1310,7 @@ dbgGetRuntimeOptions(void)
while(dbgGetRTOptNamVal(&pszOpts, &optname, &optval)) { while(dbgGetRTOptNamVal(&pszOpts, &optname, &optval)) {
if(!strcasecmp((char*)optname, "help")) { if(!strcasecmp((char*)optname, "help")) {
fprintf(stderr, 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" "environment variables:\n"
"addional logfile: export RSYSLOG_DEBUGFILE=\"/path/to/file\"\n" "addional logfile: export RSYSLOG_DEBUGFILE=\"/path/to/file\"\n"
"to set: export RSYSLOG_DEBUG=\"cmd cmd cmd\"\n\n" "to set: export RSYSLOG_DEBUG=\"cmd cmd cmd\"\n\n"
@ -1358,7 +1358,7 @@ dbgGetRuntimeOptions(void)
bAbortTrace = 0; bAbortTrace = 0;
} else if(!strcasecmp((char*)optname, "filetrace")) { } else if(!strcasecmp((char*)optname, "filetrace")) {
if(*optval == '\0') { 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"); "e.g. \"logfile=debug.c\"\n");
exit(1); exit(1);
} else { } else {
@ -1366,7 +1366,7 @@ dbgGetRuntimeOptions(void)
dbgPrintNameAdd(optval, &printNameFileRoot); dbgPrintNameAdd(optval, &printNameFileRoot);
} }
} else { } 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); optval, optname);
} }
} }