Skip to content

Commit 4ce2596

Browse files
Fabian FrederickMartin Schwidefsky
authored andcommitted
s390/dasd: replace pr_warning by pr_warn
Fix checkpatch warning: "WARNING: Prefer pr_warn(... to pr_warning(..." + coalesce formats. Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Stefan Haberland <stefan.haberland@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent 7048a2b commit 4ce2596

1 file changed

Lines changed: 12 additions & 16 deletions

File tree

‎drivers/s390/block/dasd.c‎

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3221,8 +3221,8 @@ static void dasd_generic_auto_online(void *data, async_cookie_t cookie)
32213221

32223222
ret = ccw_device_set_online(cdev);
32233223
if (ret)
3224-
pr_warning("%s: Setting the DASD online failed with rc=%d\n",
3225-
dev_name(&cdev->dev), ret);
3224+
pr_warn("%s: Setting the DASD online failed with rc=%d\n",
3225+
dev_name(&cdev->dev), ret);
32263226
}
32273227

32283228
/*
@@ -3319,9 +3319,8 @@ int dasd_generic_set_online(struct ccw_device *cdev,
33193319
discipline = base_discipline;
33203320
if (device->features & DASD_FEATURE_USEDIAG) {
33213321
if (!dasd_diag_discipline_pointer) {
3322-
pr_warning("%s Setting the DASD online failed because "
3323-
"of missing DIAG discipline\n",
3324-
dev_name(&cdev->dev));
3322+
pr_warn("%s Setting the DASD online failed because of missing DIAG discipline\n",
3323+
dev_name(&cdev->dev));
33253324
dasd_delete_device(device);
33263325
return -ENODEV;
33273326
}
@@ -3342,9 +3341,8 @@ int dasd_generic_set_online(struct ccw_device *cdev,
33423341
/* check_device will allocate block device if necessary */
33433342
rc = discipline->check_device(device);
33443343
if (rc) {
3345-
pr_warning("%s Setting the DASD online with discipline %s "
3346-
"failed with rc=%i\n",
3347-
dev_name(&cdev->dev), discipline->name, rc);
3344+
pr_warn("%s Setting the DASD online with discipline %s failed with rc=%i\n",
3345+
dev_name(&cdev->dev), discipline->name, rc);
33483346
module_put(discipline->owner);
33493347
module_put(base_discipline->owner);
33503348
dasd_delete_device(device);
@@ -3353,8 +3351,8 @@ int dasd_generic_set_online(struct ccw_device *cdev,
33533351

33543352
dasd_set_target_state(device, DASD_STATE_ONLINE);
33553353
if (device->state <= DASD_STATE_KNOWN) {
3356-
pr_warning("%s Setting the DASD online failed because of a "
3357-
"missing discipline\n", dev_name(&cdev->dev));
3354+
pr_warn("%s Setting the DASD online failed because of a missing discipline\n",
3355+
dev_name(&cdev->dev));
33583356
rc = -ENODEV;
33593357
dasd_set_target_state(device, DASD_STATE_NEW);
33603358
if (device->block)
@@ -3393,13 +3391,11 @@ int dasd_generic_set_offline(struct ccw_device *cdev)
33933391
open_count = atomic_read(&device->block->open_count);
33943392
if (open_count > max_count) {
33953393
if (open_count > 0)
3396-
pr_warning("%s: The DASD cannot be set offline "
3397-
"with open count %i\n",
3398-
dev_name(&cdev->dev), open_count);
3394+
pr_warn("%s: The DASD cannot be set offline with open count %i\n",
3395+
dev_name(&cdev->dev), open_count);
33993396
else
3400-
pr_warning("%s: The DASD cannot be set offline "
3401-
"while it is in use\n",
3402-
dev_name(&cdev->dev));
3397+
pr_warn("%s: The DASD cannot be set offline while it is in use\n",
3398+
dev_name(&cdev->dev));
34033399
clear_bit(DASD_FLAG_OFFLINE, &device->flags);
34043400
dasd_put_device(device);
34053401
return -EBUSY;

0 commit comments

Comments
 (0)