diff options
author | Michael Holzheu <holzheu@linux.vnet.ibm.com> | 2009-09-11 04:29:07 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2009-09-11 04:29:57 -0400 |
commit | 59e36927ee08f3bf06d8d14597e57389bf1b41dc (patch) | |
tree | f9120693b80ce05380d7197c2eda7faec16059f6 /drivers/s390 | |
parent | bde69af2ab696eebfac9583ea1e8a46b571e317f (diff) |
[S390] tape: Use pr_xxx instead of dev_xxx in shared driver code
For messages from the tape core that is shared between the 3590 and 34xx
tape disciplines, we want to have the "tape" prefix instead of "tape_3590"
or "tape_34xx". In order to fix this, we now use the pr_xxx printk macros.
Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/char/tape_34xx.c | 2 | ||||
-rw-r--r-- | drivers/s390/char/tape_3590.c | 4 | ||||
-rw-r--r-- | drivers/s390/char/tape_block.c | 12 | ||||
-rw-r--r-- | drivers/s390/char/tape_core.c | 12 |
4 files changed, 14 insertions, 16 deletions
diff --git a/drivers/s390/char/tape_34xx.c b/drivers/s390/char/tape_34xx.c index 5a519fac37b7..2fe45ff77b75 100644 --- a/drivers/s390/char/tape_34xx.c +++ b/drivers/s390/char/tape_34xx.c | |||
@@ -8,7 +8,7 @@ | |||
8 | * Martin Schwidefsky <schwidefsky@de.ibm.com> | 8 | * Martin Schwidefsky <schwidefsky@de.ibm.com> |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #define KMSG_COMPONENT "tape" | 11 | #define KMSG_COMPONENT "tape_34xx" |
12 | 12 | ||
13 | #include <linux/module.h> | 13 | #include <linux/module.h> |
14 | #include <linux/init.h> | 14 | #include <linux/init.h> |
diff --git a/drivers/s390/char/tape_3590.c b/drivers/s390/char/tape_3590.c index 418f72dd39b4..e4cc3aae9162 100644 --- a/drivers/s390/char/tape_3590.c +++ b/drivers/s390/char/tape_3590.c | |||
@@ -8,7 +8,7 @@ | |||
8 | * Martin Schwidefsky <schwidefsky@de.ibm.com> | 8 | * Martin Schwidefsky <schwidefsky@de.ibm.com> |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #define KMSG_COMPONENT "tape" | 11 | #define KMSG_COMPONENT "tape_3590" |
12 | 12 | ||
13 | #include <linux/module.h> | 13 | #include <linux/module.h> |
14 | #include <linux/init.h> | 14 | #include <linux/init.h> |
@@ -39,8 +39,6 @@ EXPORT_SYMBOL(TAPE_DBF_AREA); | |||
39 | * - Read Alternate: implemented | 39 | * - Read Alternate: implemented |
40 | *******************************************************************/ | 40 | *******************************************************************/ |
41 | 41 | ||
42 | #define KMSG_COMPONENT "tape" | ||
43 | |||
44 | static const char *tape_3590_msg[TAPE_3590_MAX_MSG] = { | 42 | static const char *tape_3590_msg[TAPE_3590_MAX_MSG] = { |
45 | [0x00] = "", | 43 | [0x00] = "", |
46 | [0x10] = "Lost Sense", | 44 | [0x10] = "Lost Sense", |
diff --git a/drivers/s390/char/tape_block.c b/drivers/s390/char/tape_block.c index 1c2a582e626c..4cb9e70507ab 100644 --- a/drivers/s390/char/tape_block.c +++ b/drivers/s390/char/tape_block.c | |||
@@ -310,8 +310,8 @@ tapeblock_revalidate_disk(struct gendisk *disk) | |||
310 | if (rc < 0) | 310 | if (rc < 0) |
311 | return rc; | 311 | return rc; |
312 | 312 | ||
313 | dev_info(&device->cdev->dev, "Determining the size of the recorded " | 313 | pr_info("%s: Determining the size of the recorded area...\n", |
314 | "area...\n"); | 314 | dev_name(&device->cdev->dev)); |
315 | DBF_LH(3, "Image file ends at %d\n", rc); | 315 | DBF_LH(3, "Image file ends at %d\n", rc); |
316 | nr_of_blks = rc; | 316 | nr_of_blks = rc; |
317 | 317 | ||
@@ -330,8 +330,8 @@ tapeblock_revalidate_disk(struct gendisk *disk) | |||
330 | device->bof = rc; | 330 | device->bof = rc; |
331 | nr_of_blks -= rc; | 331 | nr_of_blks -= rc; |
332 | 332 | ||
333 | dev_info(&device->cdev->dev, "The size of the recorded area is %i " | 333 | pr_info("%s: The size of the recorded area is %i blocks\n", |
334 | "blocks\n", nr_of_blks); | 334 | dev_name(&device->cdev->dev), nr_of_blks); |
335 | set_capacity(device->blk_data.disk, | 335 | set_capacity(device->blk_data.disk, |
336 | nr_of_blks*(TAPEBLOCK_HSEC_SIZE/512)); | 336 | nr_of_blks*(TAPEBLOCK_HSEC_SIZE/512)); |
337 | 337 | ||
@@ -366,8 +366,8 @@ tapeblock_open(struct block_device *bdev, fmode_t mode) | |||
366 | 366 | ||
367 | if (device->required_tapemarks) { | 367 | if (device->required_tapemarks) { |
368 | DBF_EVENT(2, "TBLOCK: missing tapemarks\n"); | 368 | DBF_EVENT(2, "TBLOCK: missing tapemarks\n"); |
369 | dev_warn(&device->cdev->dev, "Opening the tape failed because" | 369 | pr_warning("%s: Opening the tape failed because of missing " |
370 | " of missing end-of-file marks\n"); | 370 | "end-of-file marks\n", dev_name(&device->cdev->dev)); |
371 | rc = -EPERM; | 371 | rc = -EPERM; |
372 | goto put_device; | 372 | goto put_device; |
373 | } | 373 | } |
diff --git a/drivers/s390/char/tape_core.c b/drivers/s390/char/tape_core.c index 934a42ebe11f..5cd31e071647 100644 --- a/drivers/s390/char/tape_core.c +++ b/drivers/s390/char/tape_core.c | |||
@@ -215,14 +215,14 @@ tape_med_state_set(struct tape_device *device, enum tape_medium_state newstate) | |||
215 | case MS_UNLOADED: | 215 | case MS_UNLOADED: |
216 | device->tape_generic_status |= GMT_DR_OPEN(~0); | 216 | device->tape_generic_status |= GMT_DR_OPEN(~0); |
217 | if (device->medium_state == MS_LOADED) | 217 | if (device->medium_state == MS_LOADED) |
218 | dev_info(&device->cdev->dev, "The tape cartridge has " | 218 | pr_info("%s: The tape cartridge has been successfully " |
219 | "been successfully unloaded\n"); | 219 | "unloaded\n", dev_name(&device->cdev->dev)); |
220 | break; | 220 | break; |
221 | case MS_LOADED: | 221 | case MS_LOADED: |
222 | device->tape_generic_status &= ~GMT_DR_OPEN(~0); | 222 | device->tape_generic_status &= ~GMT_DR_OPEN(~0); |
223 | if (device->medium_state == MS_UNLOADED) | 223 | if (device->medium_state == MS_UNLOADED) |
224 | dev_info(&device->cdev->dev, "A tape cartridge has " | 224 | pr_info("%s: A tape cartridge has been mounted\n", |
225 | "been mounted\n"); | 225 | dev_name(&device->cdev->dev)); |
226 | break; | 226 | break; |
227 | default: | 227 | default: |
228 | // print nothing | 228 | // print nothing |
@@ -656,8 +656,8 @@ tape_generic_remove(struct ccw_device *cdev) | |||
656 | */ | 656 | */ |
657 | DBF_EVENT(3, "(%08x): Drive in use vanished!\n", | 657 | DBF_EVENT(3, "(%08x): Drive in use vanished!\n", |
658 | device->cdev_id); | 658 | device->cdev_id); |
659 | dev_warn(&device->cdev->dev, "A tape unit was detached" | 659 | pr_warning("%s: A tape unit was detached while in " |
660 | " while in use\n"); | 660 | "use\n", dev_name(&device->cdev->dev)); |
661 | tape_state_set(device, TS_NOT_OPER); | 661 | tape_state_set(device, TS_NOT_OPER); |
662 | __tape_discard_requests(device); | 662 | __tape_discard_requests(device); |
663 | spin_unlock_irq(get_ccwdev_lock(device->cdev)); | 663 | spin_unlock_irq(get_ccwdev_lock(device->cdev)); |