Skip to content

Commit 5aa9ffb

Browse files
jimcgregkh
authored andcommitted
dyndbg: shorten our logging prefix, drop __func__
For log-message output, reduce column space consumed by current pr_fmt by dropping __func__ and shortening "dynamic_debug" to "dyndbg". This improves readability on narrow consoles, and better matches other kernel boot info messages. Acked-by: <jbaron@akamai.com> Signed-off-by: Jim Cromie <jim.cromie@gmail.com> Link: https://lore.kernel.org/r/20200719231058.1586423-18-jim.cromie@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 4b33448 commit 5aa9ffb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/dynamic_debug.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Copyright (C) 2013 Du, Changbin <changbin.du@gmail.com>
1212
*/
1313

14-
#define pr_fmt(fmt) KBUILD_MODNAME ":%s: " fmt, __func__
14+
#define pr_fmt(fmt) "dyndbg: " fmt
1515

1616
#include <linux/kernel.h>
1717
#include <linux/module.h>

0 commit comments

Comments
 (0)