lkml.org 
[lkml]   [2019]   [Jul]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH 1/2] debugfs: provide pr_fmt() macro
On Wed, Jul 3, 2019 at 9:17 AM Greg Kroah-Hartman
<gregkh@linuxfoundation.org> wrote:
>
> Use a common "debugfs: " prefix for all pr_* calls in a single place.
>
> Cc: Mark Brown <broonie@kernel.org>
> Cc: Takashi Iwai <tiwai@suse.de>
> Cc: "Rafael J. Wysocki" <rafael@kernel.org>
> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

> ---
> fs/debugfs/inode.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c
> index acef14ad53db..f04c8475d9a1 100644
> --- a/fs/debugfs/inode.c
> +++ b/fs/debugfs/inode.c
> @@ -9,6 +9,8 @@
> * See ./Documentation/core-api/kernel-api.rst for more details.
> */
>
> +#define pr_fmt(fmt) "debugfs: " fmt
> +
> #include <linux/module.h>
> #include <linux/fs.h>
> #include <linux/mount.h>
> @@ -285,7 +287,7 @@ static struct dentry *start_creating(const char *name, struct dentry *parent)
> struct dentry *dentry;
> int error;
>
> - pr_debug("debugfs: creating file '%s'\n",name);
> + pr_debug("creating file '%s'\n", name);
>
> if (IS_ERR(parent))
> return parent;
> --
> 2.22.0
>

\
 
 \ /
  Last update: 2019-07-03 11:09    [W:0.072 / U:3.492 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site