diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2011-08-05 15:07:32 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-08-05 15:07:32 +0200 |
commit | 77b93c21711c35d5935f3d55fb74968491cd133a (patch) | |
tree | 9d806279519a6467b568390ac019b3a72905c09c | |
parent | 3c1f4123e2959e787e100762c96cbae133314e0e (diff) | |
download | rsyslog-77b93c21711c35d5935f3d55fb74968491cd133a.tar.gz rsyslog-77b93c21711c35d5935f3d55fb74968491cd133a.tar.xz rsyslog-77b93c21711c35d5935f3d55fb74968491cd133a.zip |
somewhat more informative imklog status messages (mostly cosmetic)
-rw-r--r-- | plugins/imklog/linux.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/imklog/linux.c b/plugins/imklog/linux.c index 38250efa..efa25dcc 100644 --- a/plugins/imklog/linux.c +++ b/plugins/imklog/linux.c @@ -156,7 +156,8 @@ static enum LOGSRC GetKernelLogSrc(modConfData_t *pModConf) return(none); } - imklogLogIntMsg(LOG_INFO, "imklog %s, log source = %s started.", VERSION, GetPath(pModConf)); + imklogLogIntMsg(LOG_INFO, "imklog %s, log source = %s, fd = %d started.", + VERSION, GetPath(pModConf), kmsg); return(proc); } @@ -532,7 +533,8 @@ static void LogProcLine(modConfData_t *pModConf) if ( (rdcnt = read(kmsg, log_buffer, sizeof(log_buffer)-1)) < 0 ) { if ( errno == EINTR ) return; - imklogLogIntMsg(LOG_ERR, "Cannot read proc file system: %d - %s.", errno, strerror(errno)); + imklogLogIntMsg(LOG_ERR, "Cannot read proc file system: %d - %s " + "(fd %d)", errno, strerror(errno), kmsg); } else { LogLine(pModConf, log_buffer, rdcnt); } |