diff options
author | Moger, Babu <Babu.Moger@lsi.com> | 2010-04-13 09:21:12 -0600 |
---|---|---|
committer | Christophe Varoqui <christophe.varoqui@opensvc.com> | 2010-04-17 13:17:06 +0200 |
commit | 66288a8675e5b4d6ccc47ebfec8667cd9580ddfa (patch) | |
tree | 568ced6b25e8fc4e3f620c83da10162e8114cec7 /multipathd | |
parent | fa1d468056783c1b2abc44bf8304d7c497403a5e (diff) | |
download | multipath-tools-66288a8675e5b4d6ccc47ebfec8667cd9580ddfa.tar.gz multipath-tools-66288a8675e5b4d6ccc47ebfec8667cd9580ddfa.tar.bz2 multipath-tools-66288a8675e5b4d6ccc47ebfec8667cd9580ddfa.zip |
multipath_tools: add alias while printing checker_message
This patch adds alias while printing checker messages.
Example of current Checker message.
Apr 11 04:03:53 mymachine multipathd: sde: rdac checker reports path is down
Most of the time "sde" is meaningless when debugging the past failures.
This patch add alias before the checker message..
Example of the new message..
Apr 12 16:55:54 mymachine multipathd: mpathb: sde - rdac checker reports path is down
Signed-off-by: Babu Moger <babu.moger@lsi.com>
Reviewed-by: Vijay Chauhan <Vijay.Chauhan@lsi.com>
Diffstat (limited to 'multipathd')
-rw-r--r-- | multipathd/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/multipathd/main.c b/multipathd/main.c index 5bf20bb..44d07c2 100644 --- a/multipathd/main.c +++ b/multipathd/main.c @@ -61,7 +61,7 @@ #define CMDSIZE 160 #define LOG_MSG(a,b) \ - if (strlen(b)) condlog(a, "%s: %s", pp->dev, b); + if (strlen(b)) condlog(a, "%s: %s - %s", pp->mpp->alias, pp->dev, b); pthread_cond_t exit_cond = PTHREAD_COND_INITIALIZER; pthread_mutex_t exit_mutex = PTHREAD_MUTEX_INITIALIZER; |