Re: [PATCH 2/2] FS/CONFIGFS: Use pr_fmt

From: Andrew Morton
Date: Tue May 13 2014 - 16:51:00 EST


On Tue, 13 May 2014 20:24:28 +0200 Fabian Frederick <fabf@xxxxxxxxx> wrote:

> -Adding pr_fmt based on module name.
>
> ...
>
> --- a/fs/configfs/configfs_internal.h
> +++ b/fs/configfs/configfs_internal.h
> @@ -24,6 +24,12 @@
> * configfs Copyright (C) 2005 Oracle. All rights reserved.
> */
>
> +#ifdef pr_fmt
> +#undef pr_fmt
> +#endif

Why this?

> +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
> +
> #include <linux/slab.h>
> #include <linux/list.h>
> #include <linux/spinlock.h>
>
> ...
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/