From 77b93c21711c35d5935f3d55fb74968491cd133a Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Fri, 5 Aug 2011 15:07:32 +0200 Subject: somewhat more informative imklog status messages (mostly cosmetic) --- plugins/imklog/linux.c | 6 ++++-- 1 file 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); } -- cgit