From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from bombadil.infradead.org ([198.137.202.9]:33823 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754802AbcJUKeS (ORCPT ); Fri, 21 Oct 2016 06:34:18 -0400 Date: Fri, 21 Oct 2016 08:34:03 -0200 From: Mauro Carvalho Chehab To: SF Markus Elfring Cc: Mauro Carvalho Chehab , Linux Media Mailing List , Hans Verkuil , Arnd Bergmann , Max Kellermann , Shuah Khan , Malcolm Priestley , Michael Ira Krufky , Abhilash Jindal , Xiubo Li Subject: Re: [PATCH 11/25] [media] dvb-core: use pr_foo() instead of printk() Message-ID: <20161021083403.3fd0e83f@vento.lan> In-Reply-To: References: <1d5040384c93e1cb37dd41e780e44a88b1e63ce4.1476466574.git.mchehab@s-opensource.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-media-owner@vger.kernel.org List-ID: Em Fri, 14 Oct 2016 20:22:40 +0200 SF Markus Elfring escreveu: > > diff --git a/drivers/media/dvb-core/dmxdev.c b/drivers/media/dvb-core/dmxdev.c > > index 7b67e1dd97fd..1e96a6f1b6f0 100644 > > --- a/drivers/media/dvb-core/dmxdev.c > > +++ b/drivers/media/dvb-core/dmxdev.c > > @@ -20,6 +20,8 @@ > > * > > */ > > > > +#define pr_fmt(fmt) "dmxdev: " fmt > > + > > #include > > #include > > #include > > How do you think to use an approach like the following there? > > > +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt > > > or eventually > > > +#define MY_LOG_PREFIX KBUILD_MODNAME ": " > +#define pr_fmt(fmt) MY_LOG_PREFIX fmt we use a lot KBUILD_MODNAME on driver's pr_fmt() macros. However, in this specific case, it is not a good idea, as this patch is touching at the DVB core, with is composed by several different and almost independent parts. So, we want to know what part of the DVB core is producing such messages. Regards, Mauro