diff mbox

[v3,1/3] clocksource: mtk_timer: add pr_fmt define

Message ID 1445815284-10425-1-git-send-email-alexey.klimov@linaro.org (mailing list archive)
State New, archived
Headers show

Commit Message

Alexey Klimov Oct. 25, 2015, 11:21 p.m. UTC
It's a bit unclear what subsystem/driver emits some messages
to dmesg in function mtk_init_timer().
Use pr_fmt to auto-prefix the messages appropriately.

Acked-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Alexey Klimov <alexey.klimov@linaro.org>
---
Changes in v3:
  -- none

Changes in v2:
  -- added acked-by from Matthias

 drivers/clocksource/mtk_timer.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Daniel Lezcano Oct. 27, 2015, 10:21 a.m. UTC | #1
On 10/26/2015 12:21 AM, Alexey Klimov wrote:
> It's a bit unclear what subsystem/driver emits some messages
> to dmesg in function mtk_init_timer().
> Use pr_fmt to auto-prefix the messages appropriately.
>
> Acked-by: Matthias Brugger <matthias.bgg@gmail.com>
> Signed-off-by: Alexey Klimov <alexey.klimov@linaro.org>
> ---

Patches applied for next release.

Thanks !

   -- Daniel
diff mbox

Patch

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 <linux/clk.h>
 #include <linux/clockchips.h>
 #include <linux/interrupt.h>