diff mbox

multipath_tools: add alias while printing checker_message

Message ID E463DF2B2E584B4A82673F53D62C2EF48D088D7E@cosmail01.lsi.com (mailing list archive)
State Accepted, archived
Headers show

Commit Message

babu moger April 13, 2010, 3:21 p.m. UTC
None
diff mbox

Patch

--- multipath-tools/multipathd/main.c.orig	2010-04-12 13:58:27.000000000 -0500
+++ multipath-tools/multipathd/main.c	2010-04-12 14:01:08.000000000 -0500
@@ -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;