Commit bb509912 authored by Michael Holzheu's avatar Michael Holzheu Committed by Martin Schwidefsky

[S390] tape: Add pr_fmt() macro to all tape source files

Without defining the pr_fmt() macro, the "tape: " prefix will not be
printed when using the pr_xxx printk macros. This patch adds the
missing definitions.
Signed-off-by: default avatarMichael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 622e99bf
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
*/ */
#define KMSG_COMPONENT "tape_34xx" #define KMSG_COMPONENT "tape_34xx"
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
#include <linux/module.h> #include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
*/ */
#define KMSG_COMPONENT "tape_3590" #define KMSG_COMPONENT "tape_3590"
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
#include <linux/module.h> #include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
*/ */
#define KMSG_COMPONENT "tape" #define KMSG_COMPONENT "tape"
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
#include <linux/fs.h> #include <linux/fs.h>
#include <linux/module.h> #include <linux/module.h>
......
...@@ -10,6 +10,9 @@ ...@@ -10,6 +10,9 @@
* Martin Schwidefsky <schwidefsky@de.ibm.com> * Martin Schwidefsky <schwidefsky@de.ibm.com>
*/ */
#define KMSG_COMPONENT "tape"
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
#include <linux/module.h> #include <linux/module.h>
#include <linux/types.h> #include <linux/types.h>
#include <linux/proc_fs.h> #include <linux/proc_fs.h>
......
...@@ -7,6 +7,10 @@ ...@@ -7,6 +7,10 @@
* Author: Stefan Bader <shbader@de.ibm.com> * Author: Stefan Bader <shbader@de.ibm.com>
* Based on simple class device code by Greg K-H * Based on simple class device code by Greg K-H
*/ */
#define KMSG_COMPONENT "tape"
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
#include "tape_class.h" #include "tape_class.h"
MODULE_AUTHOR("Stefan Bader <shbader@de.ibm.com>"); MODULE_AUTHOR("Stefan Bader <shbader@de.ibm.com>");
......
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
*/ */
#define KMSG_COMPONENT "tape" #define KMSG_COMPONENT "tape"
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
#include <linux/module.h> #include <linux/module.h>
#include <linux/init.h> // for kernel parameters #include <linux/init.h> // for kernel parameters
#include <linux/kmod.h> // for requesting modules #include <linux/kmod.h> // for requesting modules
......
...@@ -11,6 +11,9 @@ ...@@ -11,6 +11,9 @@
* PROCFS Functions * PROCFS Functions
*/ */
#define KMSG_COMPONENT "tape"
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
#include <linux/module.h> #include <linux/module.h>
#include <linux/vmalloc.h> #include <linux/vmalloc.h>
#include <linux/seq_file.h> #include <linux/seq_file.h>
......
...@@ -11,6 +11,9 @@ ...@@ -11,6 +11,9 @@
* Stefan Bader <shbader@de.ibm.com> * Stefan Bader <shbader@de.ibm.com>
*/ */
#define KMSG_COMPONENT "tape"
#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
#include <linux/stddef.h> #include <linux/stddef.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/bio.h> #include <linux/bio.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment