diff options
Diffstat (limited to 'drivers/s390/char/tape_std.c')
-rw-r--r-- | drivers/s390/char/tape_std.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/s390/char/tape_std.c b/drivers/s390/char/tape_std.c index cc8fd781ee22..5bd573d144d6 100644 --- a/drivers/s390/char/tape_std.c +++ b/drivers/s390/char/tape_std.c | |||
@@ -47,7 +47,7 @@ tape_std_assign_timeout(unsigned long data) | |||
47 | rc = tape_cancel_io(device, request); | 47 | rc = tape_cancel_io(device, request); |
48 | if(rc) | 48 | if(rc) |
49 | PRINT_ERR("(%s): Assign timeout: Cancel failed with rc = %i\n", | 49 | PRINT_ERR("(%s): Assign timeout: Cancel failed with rc = %i\n", |
50 | device->cdev->dev.bus_id, rc); | 50 | dev_name(&device->cdev->dev), rc); |
51 | 51 | ||
52 | } | 52 | } |
53 | 53 | ||
@@ -83,7 +83,7 @@ tape_std_assign(struct tape_device *device) | |||
83 | 83 | ||
84 | if (rc != 0) { | 84 | if (rc != 0) { |
85 | PRINT_WARN("%s: assign failed - device might be busy\n", | 85 | PRINT_WARN("%s: assign failed - device might be busy\n", |
86 | device->cdev->dev.bus_id); | 86 | dev_name(&device->cdev->dev)); |
87 | DBF_EVENT(3, "%08x: assign failed - device might be busy\n", | 87 | DBF_EVENT(3, "%08x: assign failed - device might be busy\n", |
88 | device->cdev_id); | 88 | device->cdev_id); |
89 | } else { | 89 | } else { |
@@ -106,7 +106,7 @@ tape_std_unassign (struct tape_device *device) | |||
106 | DBF_EVENT(3, "(%08x): Can't unassign device\n", | 106 | DBF_EVENT(3, "(%08x): Can't unassign device\n", |
107 | device->cdev_id); | 107 | device->cdev_id); |
108 | PRINT_WARN("(%s): Can't unassign device - device gone\n", | 108 | PRINT_WARN("(%s): Can't unassign device - device gone\n", |
109 | device->cdev->dev.bus_id); | 109 | dev_name(&device->cdev->dev)); |
110 | return -EIO; | 110 | return -EIO; |
111 | } | 111 | } |
112 | 112 | ||
@@ -120,7 +120,8 @@ tape_std_unassign (struct tape_device *device) | |||
120 | 120 | ||
121 | if ((rc = tape_do_io(device, request)) != 0) { | 121 | if ((rc = tape_do_io(device, request)) != 0) { |
122 | DBF_EVENT(3, "%08x: Unassign failed\n", device->cdev_id); | 122 | DBF_EVENT(3, "%08x: Unassign failed\n", device->cdev_id); |
123 | PRINT_WARN("%s: Unassign failed\n", device->cdev->dev.bus_id); | 123 | PRINT_WARN("%s: Unassign failed\n", |
124 | dev_name(&device->cdev->dev)); | ||
124 | } else { | 125 | } else { |
125 | DBF_EVENT(3, "%08x: Tape unassigned\n", device->cdev_id); | 126 | DBF_EVENT(3, "%08x: Tape unassigned\n", device->cdev_id); |
126 | } | 127 | } |
@@ -634,10 +635,10 @@ tape_std_mtcompression(struct tape_device *device, int mt_count) | |||
634 | DBF_EXCEPTION(6, "xcom parm\n"); | 635 | DBF_EXCEPTION(6, "xcom parm\n"); |
635 | if (*device->modeset_byte & 0x08) | 636 | if (*device->modeset_byte & 0x08) |
636 | PRINT_INFO("(%s) Compression is currently on\n", | 637 | PRINT_INFO("(%s) Compression is currently on\n", |
637 | device->cdev->dev.bus_id); | 638 | dev_name(&device->cdev->dev)); |
638 | else | 639 | else |
639 | PRINT_INFO("(%s) Compression is currently off\n", | 640 | PRINT_INFO("(%s) Compression is currently off\n", |
640 | device->cdev->dev.bus_id); | 641 | dev_name(&device->cdev->dev)); |
641 | PRINT_INFO("Use 1 to switch compression on, 0 to " | 642 | PRINT_INFO("Use 1 to switch compression on, 0 to " |
642 | "switch it off\n"); | 643 | "switch it off\n"); |
643 | return -EINVAL; | 644 | return -EINVAL; |