From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758559AbbIDIvk (ORCPT ); Fri, 4 Sep 2015 04:51:40 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:33016 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758522AbbIDIvf (ORCPT ); Fri, 4 Sep 2015 04:51:35 -0400 Subject: Re: [RFC PATCH 1/3] clocksource: mtk_timer: add pr_fmt define To: Alexey Klimov , daniel.lezcano@linaro.org, linux-mediatek@lists.infradead.org References: <1441336900-15095-1-git-send-email-alexey.klimov@linaro.org> Cc: yingjoe.chen@mediatek.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, klimov.linux@gmail.com From: Matthias Brugger Message-ID: <55E95B95.4030207@gmail.com> Date: Fri, 4 Sep 2015 10:51:33 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <1441336900-15095-1-git-send-email-alexey.klimov@linaro.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/09/15 05:21, Alexey Klimov wrote: > It's a bit uncler what subsystem/driver emits some messages > to dmesg in function mtk_init_timer(). > Use pr_fmt to auto-prefix the messages appropriately. > > Signed-off-by: Alexey Klimov Acked-by: Matthias Brugger > --- > drivers/clocksource/mtk_timer.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/clocksource/mtk_timer.c b/drivers/clocksource/mtk_timer.c > index 50f0641..ca5ea9e 100644 > --- a/drivers/clocksource/mtk_timer.c > +++ b/drivers/clocksource/mtk_timer.c > @@ -16,6 +16,8 @@ > * GNU General Public License for more details. > */ > > +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt > + > #include > #include > #include >