Commit bb509912481214cf6ad1181c968295c62ff1ad9e

Authored by Michael Holzheu
Committed by Martin Schwidefsky
1 parent 622e99bf0d

[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: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

Showing 8 changed files with 18 additions and 0 deletions Side-by-side Diff

drivers/s390/char/tape_34xx.c
... ... @@ -9,6 +9,7 @@
9 9 */
10 10  
11 11 #define KMSG_COMPONENT "tape_34xx"
  12 +#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
12 13  
13 14 #include <linux/module.h>
14 15 #include <linux/init.h>
drivers/s390/char/tape_3590.c
... ... @@ -9,6 +9,7 @@
9 9 */
10 10  
11 11 #define KMSG_COMPONENT "tape_3590"
  12 +#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
12 13  
13 14 #include <linux/module.h>
14 15 #include <linux/init.h>
drivers/s390/char/tape_block.c
... ... @@ -11,6 +11,7 @@
11 11 */
12 12  
13 13 #define KMSG_COMPONENT "tape"
  14 +#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
14 15  
15 16 #include <linux/fs.h>
16 17 #include <linux/module.h>
drivers/s390/char/tape_char.c
... ... @@ -10,6 +10,9 @@
10 10 * Martin Schwidefsky <schwidefsky@de.ibm.com>
11 11 */
12 12  
  13 +#define KMSG_COMPONENT "tape"
  14 +#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
  15 +
13 16 #include <linux/module.h>
14 17 #include <linux/types.h>
15 18 #include <linux/proc_fs.h>
drivers/s390/char/tape_class.c
... ... @@ -7,6 +7,10 @@
7 7 * Author: Stefan Bader <shbader@de.ibm.com>
8 8 * Based on simple class device code by Greg K-H
9 9 */
  10 +
  11 +#define KMSG_COMPONENT "tape"
  12 +#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
  13 +
10 14 #include "tape_class.h"
11 15  
12 16 MODULE_AUTHOR("Stefan Bader <shbader@de.ibm.com>");
drivers/s390/char/tape_core.c
... ... @@ -12,6 +12,8 @@
12 12 */
13 13  
14 14 #define KMSG_COMPONENT "tape"
  15 +#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
  16 +
15 17 #include <linux/module.h>
16 18 #include <linux/init.h> // for kernel parameters
17 19 #include <linux/kmod.h> // for requesting modules
drivers/s390/char/tape_proc.c
... ... @@ -11,6 +11,9 @@
11 11 * PROCFS Functions
12 12 */
13 13  
  14 +#define KMSG_COMPONENT "tape"
  15 +#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
  16 +
14 17 #include <linux/module.h>
15 18 #include <linux/vmalloc.h>
16 19 #include <linux/seq_file.h>
drivers/s390/char/tape_std.c
... ... @@ -11,6 +11,9 @@
11 11 * Stefan Bader <shbader@de.ibm.com>
12 12 */
13 13  
  14 +#define KMSG_COMPONENT "tape"
  15 +#define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
  16 +
14 17 #include <linux/stddef.h>
15 18 #include <linux/kernel.h>
16 19 #include <linux/bio.h>