From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christophe Varoqui Subject: Re: [PATCH] multipath_tools: add alias while printing checker_message Date: Sat, 17 Apr 2010 13:17:46 +0200 Message-ID: <1271503066.9079.21.camel@localhost> References: Reply-To: christophe.varoqui@opensvc.com, device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: device-mapper development List-Id: dm-devel.ids You're right, Applied On mar., 2010-04-13 at 09:21 -0600, Moger, Babu wrote: > 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 > Reviewed-by: Vijay Chauhan > > --- > --- 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; > > > > > -- > dm-devel mailing list > dm-devel@redhat.com > https://www.redhat.com/mailman/listinfo/dm-devel