From patchwork Tue Apr 13 15:21:12 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: babu moger X-Patchwork-Id: 92204 Received: from mx01.colomx.prod.int.phx2.redhat.com (mx3-phx2.redhat.com [209.132.183.24]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o3DFNfDI029886 for ; Tue, 13 Apr 2010 15:24:16 GMT Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx01.colomx.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o3DFLZMp001948; Tue, 13 Apr 2010 11:21:35 -0400 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o3DFLXWq018462 for ; Tue, 13 Apr 2010 11:21:33 -0400 Received: from mx1.redhat.com (ext-mx08.extmail.prod.ext.phx2.redhat.com [10.5.110.12]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o3DFLSSi016520 for ; Tue, 13 Apr 2010 11:21:28 -0400 Received: from na3sys009aog101.obsmtp.com (na3sys009aog101.obsmtp.com [74.125.149.67]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o3DFLHZC032545 for ; Tue, 13 Apr 2010 11:21:17 -0400 Received: from source ([147.145.40.20]) by na3sys009aob101.postini.com ([74.125.148.12]) with SMTP ID DSNKS8SL7EslEZMcofumoLjF7WIE0GwD/993@postini.com; Tue, 13 Apr 2010 08:21:17 PDT Received: from milmhbs0.lsil.com (mhbs.lsil.com [147.145.1.30]) by mail0.lsil.com (8.12.11/8.12.11) with ESMTP id o3DFLFCj013981 for ; Tue, 13 Apr 2010 08:21:15 -0700 (PDT) Received: from coshub01.lsi.com (coshub01.co.lsil.com [172.21.36.64]) by milmhbs0.lsil.com (8.12.11/8.12.11) with ESMTP id o3DFLI1N012553 for ; Tue, 13 Apr 2010 08:21:18 -0700 Received: from cosmail01.lsi.com ([172.21.36.24]) by coshub01.lsi.com ([172.21.36.64]) with mapi; Tue, 13 Apr 2010 09:21:15 -0600 From: "Moger, Babu" To: "dm-devel@redhat.com" Date: Tue, 13 Apr 2010 09:21:12 -0600 Thread-Topic: [PATCH] multipath_tools: add alias while printing checker_message Thread-Index: AcrbHPNqujuQ7Ac5TEu+b7REKDkvlw== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 X-Scanned-By: MIMEDefang 2.67 on 10.5.110.12 X-Scanned-By: MIMEDefang 2.39 X-RedHat-Spam-Score: -2.301 (RCVD_IN_DNSWL_MED,SPF_PASS) X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id o3DFLXWq018462 X-loop: dm-devel@redhat.com Subject: [dm-devel] [PATCH] multipath_tools: add alias while printing checker_message X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk Reply-To: device-mapper development List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 13 Apr 2010 15:24:17 +0000 (UTC) --- 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;