Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751734AbaGBJ7D (ORCPT ); Wed, 2 Jul 2014 05:59:03 -0400 Received: from zimbra13.linbit.com ([212.69.166.240]:47338 "EHLO zimbra13.linbit.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750742AbaGBJ7B (ORCPT ); Wed, 2 Jul 2014 05:59:01 -0400 From: Philipp Reisner To: drbd-dev@lists.linbit.com, Joe Perches Cc: Jens Axboe , linux-kernel@vger.kernel.org Subject: Re: [Drbd-dev] [PATCH 15/20] drbd: cosmetic: change all printk(level, ...) to pr_(...) Date: Wed, 02 Jul 2014 11:58:57 +0200 Message-ID: <1635548.f802ec2nnc@fat-tyre> User-Agent: KMail/4.13 (Linux/3.13.0-24-lowlatency; KDE/4.13.0; x86_64; ; ) In-Reply-To: <1404232237.14624.2.camel@joe-AO725> References: <1404231410-29852-1-git-send-email-philipp.reisner@linbit.com> <1404231410-29852-16-git-send-email-philipp.reisner@linbit.com> <1404232237.14624.2.camel@joe-AO725> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Dienstag, 1. Juli 2014, 09:30:37 schrieb Joe Perches: > On Tue, 2014-07-01 at 18:16 +0200, Philipp Reisner wrote: > > From: Lars Ellenberg > > > > Cosmetic change only. > > [] > > > diff --git a/drivers/block/drbd/drbd_bitmap.c > > b/drivers/block/drbd/drbd_bitmap.c > [] > > > @@ -353,9 +353,8 @@ static void bm_free_pages(struct page **pages, > > unsigned long number)> > > for (i = 0; i < number; i++) { > > > > if (!pages[i]) { > > > > - printk(KERN_ALERT "drbd: bm_free_pages tried to free " > > - "a NULL pointer; i=%lu n=%lu\n", > > - i, number); > > + pr_alert("bm_free_pages tried to free a NULL pointer; i=%lu n=%lu\n", > > + i, number); > > Cosmetic yes, but these won't be prefixed with "drbd: " > unless there's a #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt > somewhere above this and before any other #include. > Right. Thanks for pointing that out! I ammend it with this: Subject: [PATCH] fixup! drbd: cosmetic: change all printk(level, ...) to pr_(...) --- drivers/block/drbd/drbd_bitmap.c | 2 ++ drivers/block/drbd/drbd_main.c | 2 +- drivers/block/drbd/drbd_nl.c | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/block/drbd/drbd_bitmap.c b/drivers/block/drbd/drbd_bitmap.c index 72370e2..f435e7e 100644 --- a/drivers/block/drbd/drbd_bitmap.c +++ b/drivers/block/drbd/drbd_bitmap.c @@ -22,6 +22,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + #include #include #include diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c index 3788ac1..9b465bb 100644 --- a/drivers/block/drbd/drbd_main.c +++ b/drivers/block/drbd/drbd_main.c @@ -26,7 +26,7 @@ */ -#define pr_fmt(fmt) "drbd: " fmt +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include #include diff --git a/drivers/block/drbd/drbd_nl.c b/drivers/block/drbd/drbd_nl.c index bb9b8e5..7fcdc54 100644 --- a/drivers/block/drbd/drbd_nl.c +++ b/drivers/block/drbd/drbd_nl.c @@ -23,7 +23,7 @@ */ -#define pr_fmt(fmt) "drbd: " fmt +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include #include -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/