diff options
-rw-r--r-- | drivers/s390/char/tape_block.c | 4 | ||||
-rw-r--r-- | drivers/s390/char/tape_core.c | 10 |
2 files changed, 8 insertions, 6 deletions
diff --git a/drivers/s390/char/tape_block.c b/drivers/s390/char/tape_block.c index 47ff695255ea..1c2a582e626c 100644 --- a/drivers/s390/char/tape_block.c +++ b/drivers/s390/char/tape_block.c | |||
@@ -302,8 +302,6 @@ tapeblock_revalidate_disk(struct gendisk *disk) | |||
302 | if (!device->blk_data.medium_changed) | 302 | if (!device->blk_data.medium_changed) |
303 | return 0; | 303 | return 0; |
304 | 304 | ||
305 | dev_info(&device->cdev->dev, "Determining the size of the recorded " | ||
306 | "area...\n"); | ||
307 | rc = tape_mtop(device, MTFSFM, 1); | 305 | rc = tape_mtop(device, MTFSFM, 1); |
308 | if (rc) | 306 | if (rc) |
309 | return rc; | 307 | return rc; |
@@ -312,6 +310,8 @@ tapeblock_revalidate_disk(struct gendisk *disk) | |||
312 | if (rc < 0) | 310 | if (rc < 0) |
313 | return rc; | 311 | return rc; |
314 | 312 | ||
313 | dev_info(&device->cdev->dev, "Determining the size of the recorded " | ||
314 | "area...\n"); | ||
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 | ||
diff --git a/drivers/s390/char/tape_core.c b/drivers/s390/char/tape_core.c index 7424d648e81f..934a42ebe11f 100644 --- a/drivers/s390/char/tape_core.c +++ b/drivers/s390/char/tape_core.c | |||
@@ -214,13 +214,15 @@ tape_med_state_set(struct tape_device *device, enum tape_medium_state newstate) | |||
214 | switch(newstate){ | 214 | switch(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 | dev_info(&device->cdev->dev, "The tape cartridge has been " | 217 | if (device->medium_state == MS_LOADED) |
218 | "successfully unloaded\n"); | 218 | dev_info(&device->cdev->dev, "The tape cartridge has " |
219 | "been successfully unloaded\n"); | ||
219 | break; | 220 | break; |
220 | case MS_LOADED: | 221 | case MS_LOADED: |
221 | device->tape_generic_status &= ~GMT_DR_OPEN(~0); | 222 | device->tape_generic_status &= ~GMT_DR_OPEN(~0); |
222 | dev_info(&device->cdev->dev, "A tape cartridge has been " | 223 | if (device->medium_state == MS_UNLOADED) |
223 | "mounted\n"); | 224 | dev_info(&device->cdev->dev, "A tape cartridge has " |
225 | "been mounted\n"); | ||
224 | break; | 226 | break; |
225 | default: | 227 | default: |
226 | // print nothing | 228 | // print nothing |