aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2016-03-03 23:49:57 -0500
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2016-03-07 07:12:04 -0500
commitbaebc70a4db86515d55ff1f226088a8e7f5821a0 (patch)
tree191bc34400c2fcbd5efebb97cb015caf9cec7bcf /drivers/s390
parent543691a4e1e040300ce6598a6ce6527d3144e5db (diff)
s390: Use pr_warn instead of pr_warning
Convert the uses of pr_warning to pr_warn so there are fewer uses of the old pr_warning. Miscellanea: o Align arguments o Coalesce formats Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/block/dasd_devmap.c10
-rw-r--r--drivers/s390/block/dasd_diag.c28
-rw-r--r--drivers/s390/block/dasd_genhd.c4
-rw-r--r--drivers/s390/block/dasd_ioctl.c5
-rw-r--r--drivers/s390/block/dasd_proc.c5
-rw-r--r--drivers/s390/block/dcssblk.c13
-rw-r--r--drivers/s390/char/monreader.c10
-rw-r--r--drivers/s390/char/sclp_cmd.c27
-rw-r--r--drivers/s390/char/sclp_cpi_sys.c6
-rw-r--r--drivers/s390/char/tape_core.c4
-rw-r--r--drivers/s390/char/vmlogrdr.c6
-rw-r--r--drivers/s390/cio/blacklist.c9
-rw-r--r--drivers/s390/cio/ccwreq.c13
-rw-r--r--drivers/s390/cio/cio.c2
-rw-r--r--drivers/s390/cio/device.c23
-rw-r--r--drivers/s390/net/lcs.c4
-rw-r--r--drivers/s390/net/qeth_l3_main.c2
17 files changed, 76 insertions, 95 deletions
diff --git a/drivers/s390/block/dasd_devmap.c b/drivers/s390/block/dasd_devmap.c
index 8286f742436b..2f18f61092b5 100644
--- a/drivers/s390/block/dasd_devmap.c
+++ b/drivers/s390/block/dasd_devmap.c
@@ -214,8 +214,8 @@ dasd_feature_list(char *str, char **endp)
214 else if (len == 8 && !strncmp(str, "failfast", 8)) 214 else if (len == 8 && !strncmp(str, "failfast", 8))
215 features |= DASD_FEATURE_FAILFAST; 215 features |= DASD_FEATURE_FAILFAST;
216 else { 216 else {
217 pr_warning("%*s is not a supported device option\n", 217 pr_warn("%*s is not a supported device option\n",
218 len, str); 218 len, str);
219 rc = -EINVAL; 219 rc = -EINVAL;
220 } 220 }
221 str += len; 221 str += len;
@@ -224,8 +224,7 @@ dasd_feature_list(char *str, char **endp)
224 str++; 224 str++;
225 } 225 }
226 if (*str != ')') { 226 if (*str != ')') {
227 pr_warning("A closing parenthesis ')' is missing in the " 227 pr_warn("A closing parenthesis ')' is missing in the dasd= parameter\n");
228 "dasd= parameter\n");
229 rc = -EINVAL; 228 rc = -EINVAL;
230 } else 229 } else
231 str++; 230 str++;
@@ -348,8 +347,7 @@ dasd_parse_range( char *parsestring ) {
348 return str + 1; 347 return str + 1;
349 if (*str == '\0') 348 if (*str == '\0')
350 return str; 349 return str;
351 pr_warning("The dasd= parameter value %s has an invalid ending\n", 350 pr_warn("The dasd= parameter value %s has an invalid ending\n", str);
352 str);
353 return ERR_PTR(-EINVAL); 351 return ERR_PTR(-EINVAL);
354} 352}
355 353
diff --git a/drivers/s390/block/dasd_diag.c b/drivers/s390/block/dasd_diag.c
index 38c5c6ff5f49..bb2d26a40834 100644
--- a/drivers/s390/block/dasd_diag.c
+++ b/drivers/s390/block/dasd_diag.c
@@ -144,14 +144,13 @@ dasd_diag_erp(struct dasd_device *device)
144 rc = mdsk_init_io(device, device->block->bp_block, 0, NULL); 144 rc = mdsk_init_io(device, device->block->bp_block, 0, NULL);
145 if (rc == 4) { 145 if (rc == 4) {
146 if (!(test_and_set_bit(DASD_FLAG_DEVICE_RO, &device->flags))) 146 if (!(test_and_set_bit(DASD_FLAG_DEVICE_RO, &device->flags)))
147 pr_warning("%s: The access mode of a DIAG device " 147 pr_warn("%s: The access mode of a DIAG device changed to read-only\n",
148 "changed to read-only\n", 148 dev_name(&device->cdev->dev));
149 dev_name(&device->cdev->dev));
150 rc = 0; 149 rc = 0;
151 } 150 }
152 if (rc) 151 if (rc)
153 pr_warning("%s: DIAG ERP failed with " 152 pr_warn("%s: DIAG ERP failed with rc=%d\n",
154 "rc=%d\n", dev_name(&device->cdev->dev), rc); 153 dev_name(&device->cdev->dev), rc);
155} 154}
156 155
157/* Start a given request at the device. Return zero on success, non-zero 156/* Start a given request at the device. Return zero on success, non-zero
@@ -367,9 +366,9 @@ dasd_diag_check_device(struct dasd_device *device)
367 private->pt_block = 2; 366 private->pt_block = 2;
368 break; 367 break;
369 default: 368 default:
370 pr_warning("%s: Device type %d is not supported " 369 pr_warn("%s: Device type %d is not supported in DIAG mode\n",
371 "in DIAG mode\n", dev_name(&device->cdev->dev), 370 dev_name(&device->cdev->dev),
372 private->rdc_data.vdev_class); 371 private->rdc_data.vdev_class);
373 rc = -EOPNOTSUPP; 372 rc = -EOPNOTSUPP;
374 goto out; 373 goto out;
375 } 374 }
@@ -410,8 +409,8 @@ dasd_diag_check_device(struct dasd_device *device)
410 private->iob.flaga = DASD_DIAG_FLAGA_DEFAULT; 409 private->iob.flaga = DASD_DIAG_FLAGA_DEFAULT;
411 rc = dia250(&private->iob, RW_BIO); 410 rc = dia250(&private->iob, RW_BIO);
412 if (rc == 3) { 411 if (rc == 3) {
413 pr_warning("%s: A 64-bit DIAG call failed\n", 412 pr_warn("%s: A 64-bit DIAG call failed\n",
414 dev_name(&device->cdev->dev)); 413 dev_name(&device->cdev->dev));
415 rc = -EOPNOTSUPP; 414 rc = -EOPNOTSUPP;
416 goto out_label; 415 goto out_label;
417 } 416 }
@@ -420,9 +419,8 @@ dasd_diag_check_device(struct dasd_device *device)
420 break; 419 break;
421 } 420 }
422 if (bsize > PAGE_SIZE) { 421 if (bsize > PAGE_SIZE) {
423 pr_warning("%s: Accessing the DASD failed because of an " 422 pr_warn("%s: Accessing the DASD failed because of an incorrect format (rc=%d)\n",
424 "incorrect format (rc=%d)\n", 423 dev_name(&device->cdev->dev), rc);
425 dev_name(&device->cdev->dev), rc);
426 rc = -EIO; 424 rc = -EIO;
427 goto out_label; 425 goto out_label;
428 } 426 }
@@ -440,8 +438,8 @@ dasd_diag_check_device(struct dasd_device *device)
440 block->s2b_shift++; 438 block->s2b_shift++;
441 rc = mdsk_init_io(device, block->bp_block, 0, NULL); 439 rc = mdsk_init_io(device, block->bp_block, 0, NULL);
442 if (rc && (rc != 4)) { 440 if (rc && (rc != 4)) {
443 pr_warning("%s: DIAG initialization failed with rc=%d\n", 441 pr_warn("%s: DIAG initialization failed with rc=%d\n",
444 dev_name(&device->cdev->dev), rc); 442 dev_name(&device->cdev->dev), rc);
445 rc = -EIO; 443 rc = -EIO;
446 } else { 444 } else {
447 if (rc == 4) 445 if (rc == 4)
diff --git a/drivers/s390/block/dasd_genhd.c b/drivers/s390/block/dasd_genhd.c
index ef1d9fb06cab..31d544a87ba9 100644
--- a/drivers/s390/block/dasd_genhd.c
+++ b/drivers/s390/block/dasd_genhd.c
@@ -178,8 +178,8 @@ int dasd_gendisk_init(void)
178 /* Register to static dasd major 94 */ 178 /* Register to static dasd major 94 */
179 rc = register_blkdev(DASD_MAJOR, "dasd"); 179 rc = register_blkdev(DASD_MAJOR, "dasd");
180 if (rc != 0) { 180 if (rc != 0) {
181 pr_warning("Registering the device driver with major number " 181 pr_warn("Registering the device driver with major number %d failed\n",
182 "%d failed\n", DASD_MAJOR); 182 DASD_MAJOR);
183 return rc; 183 return rc;
184 } 184 }
185 return 0; 185 return 0;
diff --git a/drivers/s390/block/dasd_ioctl.c b/drivers/s390/block/dasd_ioctl.c
index 16bb5ec4b30b..90f30cc31561 100644
--- a/drivers/s390/block/dasd_ioctl.c
+++ b/drivers/s390/block/dasd_ioctl.c
@@ -265,9 +265,8 @@ dasd_ioctl_format(struct block_device *bdev, void __user *argp)
265 return -EFAULT; 265 return -EFAULT;
266 } 266 }
267 if (bdev != bdev->bd_contains) { 267 if (bdev != bdev->bd_contains) {
268 pr_warning("%s: The specified DASD is a partition and cannot " 268 pr_warn("%s: The specified DASD is a partition and cannot be formatted\n",
269 "be formatted\n", 269 dev_name(&base->cdev->dev));
270 dev_name(&base->cdev->dev));
271 dasd_put_device(base); 270 dasd_put_device(base);
272 return -EINVAL; 271 return -EINVAL;
273 } 272 }
diff --git a/drivers/s390/block/dasd_proc.c b/drivers/s390/block/dasd_proc.c
index aa7bb2d1da81..bad7a196bf84 100644
--- a/drivers/s390/block/dasd_proc.c
+++ b/drivers/s390/block/dasd_proc.c
@@ -322,13 +322,12 @@ static ssize_t dasd_stats_proc_write(struct file *file,
322 return user_len; 322 return user_len;
323out_parse_error: 323out_parse_error:
324 rc = -EINVAL; 324 rc = -EINVAL;
325 pr_warning("%s is not a supported value for /proc/dasd/statistics\n", 325 pr_warn("%s is not a supported value for /proc/dasd/statistics\n", str);
326 str);
327out_error: 326out_error:
328 vfree(buffer); 327 vfree(buffer);
329 return rc; 328 return rc;
330#else 329#else
331 pr_warning("/proc/dasd/statistics: is not activated in this kernel\n"); 330 pr_warn("/proc/dasd/statistics: is not activated in this kernel\n");
332 return user_len; 331 return user_len;
333#endif /* CONFIG_DASD_PROFILE */ 332#endif /* CONFIG_DASD_PROFILE */
334} 333}
diff --git a/drivers/s390/block/dcssblk.c b/drivers/s390/block/dcssblk.c
index ce7b70181740..1bce9cf51b1e 100644
--- a/drivers/s390/block/dcssblk.c
+++ b/drivers/s390/block/dcssblk.c
@@ -738,15 +738,15 @@ dcssblk_remove_store(struct device *dev, struct device_attribute *attr, const ch
738 dev_info = dcssblk_get_device_by_name(local_buf); 738 dev_info = dcssblk_get_device_by_name(local_buf);
739 if (dev_info == NULL) { 739 if (dev_info == NULL) {
740 up_write(&dcssblk_devices_sem); 740 up_write(&dcssblk_devices_sem);
741 pr_warning("Device %s cannot be removed because it is not a " 741 pr_warn("Device %s cannot be removed because it is not a known device\n",
742 "known device\n", local_buf); 742 local_buf);
743 rc = -ENODEV; 743 rc = -ENODEV;
744 goto out_buf; 744 goto out_buf;
745 } 745 }
746 if (atomic_read(&dev_info->use_count) != 0) { 746 if (atomic_read(&dev_info->use_count) != 0) {
747 up_write(&dcssblk_devices_sem); 747 up_write(&dcssblk_devices_sem);
748 pr_warning("Device %s cannot be removed while it is in " 748 pr_warn("Device %s cannot be removed while it is in use\n",
749 "use\n", local_buf); 749 local_buf);
750 rc = -EBUSY; 750 rc = -EBUSY;
751 goto out_buf; 751 goto out_buf;
752 } 752 }
@@ -850,9 +850,8 @@ dcssblk_make_request(struct request_queue *q, struct bio *bio)
850 case SEG_TYPE_SC: 850 case SEG_TYPE_SC:
851 /* cannot write to these segments */ 851 /* cannot write to these segments */
852 if (bio_data_dir(bio) == WRITE) { 852 if (bio_data_dir(bio) == WRITE) {
853 pr_warning("Writing to %s failed because it " 853 pr_warn("Writing to %s failed because it is a read-only device\n",
854 "is a read-only device\n", 854 dev_name(&dev_info->dev));
855 dev_name(&dev_info->dev));
856 goto fail; 855 goto fail;
857 } 856 }
858 } 857 }
diff --git a/drivers/s390/char/monreader.c b/drivers/s390/char/monreader.c
index fc94bfdceb95..ebdeaa53182d 100644
--- a/drivers/s390/char/monreader.c
+++ b/drivers/s390/char/monreader.c
@@ -257,7 +257,7 @@ static void mon_iucv_message_pending(struct iucv_path *path,
257 memcpy(&monpriv->msg_array[monpriv->write_index]->msg, 257 memcpy(&monpriv->msg_array[monpriv->write_index]->msg,
258 msg, sizeof(*msg)); 258 msg, sizeof(*msg));
259 if (atomic_inc_return(&monpriv->msglim_count) == MON_MSGLIM) { 259 if (atomic_inc_return(&monpriv->msglim_count) == MON_MSGLIM) {
260 pr_warning("The read queue for monitor data is full\n"); 260 pr_warn("The read queue for monitor data is full\n");
261 monpriv->msg_array[monpriv->write_index]->msglim_reached = 1; 261 monpriv->msg_array[monpriv->write_index]->msglim_reached = 1;
262 } 262 }
263 monpriv->write_index = (monpriv->write_index + 1) % MON_MSGLIM; 263 monpriv->write_index = (monpriv->write_index + 1) % MON_MSGLIM;
@@ -342,8 +342,8 @@ static int mon_close(struct inode *inode, struct file *filp)
342 if (monpriv->path) { 342 if (monpriv->path) {
343 rc = iucv_path_sever(monpriv->path, user_data_sever); 343 rc = iucv_path_sever(monpriv->path, user_data_sever);
344 if (rc) 344 if (rc)
345 pr_warning("Disconnecting the z/VM *MONITOR system " 345 pr_warn("Disconnecting the z/VM *MONITOR system service failed with rc=%i\n",
346 "service failed with rc=%i\n", rc); 346 rc);
347 iucv_path_free(monpriv->path); 347 iucv_path_free(monpriv->path);
348 } 348 }
349 349
@@ -469,8 +469,8 @@ static int monreader_freeze(struct device *dev)
469 if (monpriv->path) { 469 if (monpriv->path) {
470 rc = iucv_path_sever(monpriv->path, user_data_sever); 470 rc = iucv_path_sever(monpriv->path, user_data_sever);
471 if (rc) 471 if (rc)
472 pr_warning("Disconnecting the z/VM *MONITOR system " 472 pr_warn("Disconnecting the z/VM *MONITOR system service failed with rc=%i\n",
473 "service failed with rc=%i\n", rc); 473 rc);
474 iucv_path_free(monpriv->path); 474 iucv_path_free(monpriv->path);
475 } 475 }
476 atomic_set(&monpriv->iucv_severed, 0); 476 atomic_set(&monpriv->iucv_severed, 0);
diff --git a/drivers/s390/char/sclp_cmd.c b/drivers/s390/char/sclp_cmd.c
index 806239c2cf2f..d3947ea3e351 100644
--- a/drivers/s390/char/sclp_cmd.c
+++ b/drivers/s390/char/sclp_cmd.c
@@ -67,8 +67,8 @@ int sclp_sync_request_timeout(sclp_cmdw_t cmd, void *sccb, int timeout)
67 67
68 /* Check response. */ 68 /* Check response. */
69 if (request->status != SCLP_REQ_DONE) { 69 if (request->status != SCLP_REQ_DONE) {
70 pr_warning("sync request failed (cmd=0x%08x, " 70 pr_warn("sync request failed (cmd=0x%08x, status=0x%02x)\n",
71 "status=0x%02x)\n", cmd, request->status); 71 cmd, request->status);
72 rc = -EIO; 72 rc = -EIO;
73 } 73 }
74out: 74out:
@@ -122,8 +122,8 @@ int sclp_get_core_info(struct sclp_core_info *info)
122 if (rc) 122 if (rc)
123 goto out; 123 goto out;
124 if (sccb->header.response_code != 0x0010) { 124 if (sccb->header.response_code != 0x0010) {
125 pr_warning("readcpuinfo failed (response=0x%04x)\n", 125 pr_warn("readcpuinfo failed (response=0x%04x)\n",
126 sccb->header.response_code); 126 sccb->header.response_code);
127 rc = -EIO; 127 rc = -EIO;
128 goto out; 128 goto out;
129 } 129 }
@@ -160,9 +160,8 @@ static int do_core_configure(sclp_cmdw_t cmd)
160 case 0x0120: 160 case 0x0120:
161 break; 161 break;
162 default: 162 default:
163 pr_warning("configure cpu failed (cmd=0x%08x, " 163 pr_warn("configure cpu failed (cmd=0x%08x, response=0x%04x)\n",
164 "response=0x%04x)\n", cmd, 164 cmd, sccb->header.response_code);
165 sccb->header.response_code);
166 rc = -EIO; 165 rc = -EIO;
167 break; 166 break;
168 } 167 }
@@ -230,9 +229,8 @@ static int do_assign_storage(sclp_cmdw_t cmd, u16 rn)
230 case 0x0120: 229 case 0x0120:
231 break; 230 break;
232 default: 231 default:
233 pr_warning("assign storage failed (cmd=0x%08x, " 232 pr_warn("assign storage failed (cmd=0x%08x, response=0x%04x, rn=0x%04x)\n",
234 "response=0x%04x, rn=0x%04x)\n", cmd, 233 cmd, sccb->header.response_code, rn);
235 sccb->header.response_code, rn);
236 rc = -EIO; 234 rc = -EIO;
237 break; 235 break;
238 } 236 }
@@ -675,9 +673,8 @@ static int do_chp_configure(sclp_cmdw_t cmd)
675 case 0x0450: 673 case 0x0450:
676 break; 674 break;
677 default: 675 default:
678 pr_warning("configure channel-path failed " 676 pr_warn("configure channel-path failed (cmd=0x%08x, response=0x%04x)\n",
679 "(cmd=0x%08x, response=0x%04x)\n", cmd, 677 cmd, sccb->header.response_code);
680 sccb->header.response_code);
681 rc = -EIO; 678 rc = -EIO;
682 break; 679 break;
683 } 680 }
@@ -744,8 +741,8 @@ int sclp_chp_read_info(struct sclp_chp_info *info)
744 if (rc) 741 if (rc)
745 goto out; 742 goto out;
746 if (sccb->header.response_code != 0x0010) { 743 if (sccb->header.response_code != 0x0010) {
747 pr_warning("read channel-path info failed " 744 pr_warn("read channel-path info failed (response=0x%04x)\n",
748 "(response=0x%04x)\n", sccb->header.response_code); 745 sccb->header.response_code);
749 rc = -EIO; 746 rc = -EIO;
750 goto out; 747 goto out;
751 } 748 }
diff --git a/drivers/s390/char/sclp_cpi_sys.c b/drivers/s390/char/sclp_cpi_sys.c
index 2acea809e2ac..f344e5bd2d9f 100644
--- a/drivers/s390/char/sclp_cpi_sys.c
+++ b/drivers/s390/char/sclp_cpi_sys.c
@@ -154,16 +154,14 @@ static int cpi_req(void)
154 wait_for_completion(&completion); 154 wait_for_completion(&completion);
155 155
156 if (req->status != SCLP_REQ_DONE) { 156 if (req->status != SCLP_REQ_DONE) {
157 pr_warning("request failed (status=0x%02x)\n", 157 pr_warn("request failed (status=0x%02x)\n", req->status);
158 req->status);
159 rc = -EIO; 158 rc = -EIO;
160 goto out_free_req; 159 goto out_free_req;
161 } 160 }
162 161
163 response = ((struct cpi_sccb *) req->sccb)->header.response_code; 162 response = ((struct cpi_sccb *) req->sccb)->header.response_code;
164 if (response != 0x0020) { 163 if (response != 0x0020) {
165 pr_warning("request failed with response code 0x%x\n", 164 pr_warn("request failed with response code 0x%x\n", response);
166 response);
167 rc = -EIO; 165 rc = -EIO;
168 } 166 }
169 167
diff --git a/drivers/s390/char/tape_core.c b/drivers/s390/char/tape_core.c
index f3b5123faf08..3c379da2eef8 100644
--- a/drivers/s390/char/tape_core.c
+++ b/drivers/s390/char/tape_core.c
@@ -699,8 +699,8 @@ tape_generic_remove(struct ccw_device *cdev)
699 */ 699 */
700 DBF_EVENT(3, "(%08x): Drive in use vanished!\n", 700 DBF_EVENT(3, "(%08x): Drive in use vanished!\n",
701 device->cdev_id); 701 device->cdev_id);
702 pr_warning("%s: A tape unit was detached while in " 702 pr_warn("%s: A tape unit was detached while in use\n",
703 "use\n", dev_name(&device->cdev->dev)); 703 dev_name(&device->cdev->dev));
704 tape_state_set(device, TS_NOT_OPER); 704 tape_state_set(device, TS_NOT_OPER);
705 __tape_discard_requests(device); 705 __tape_discard_requests(device);
706 spin_unlock_irq(get_ccwdev_lock(device->cdev)); 706 spin_unlock_irq(get_ccwdev_lock(device->cdev));
diff --git a/drivers/s390/char/vmlogrdr.c b/drivers/s390/char/vmlogrdr.c
index 799c1524c779..e883063c7258 100644
--- a/drivers/s390/char/vmlogrdr.c
+++ b/drivers/s390/char/vmlogrdr.c
@@ -343,8 +343,7 @@ static int vmlogrdr_open (struct inode *inode, struct file *filp)
343 if (logptr->autorecording) { 343 if (logptr->autorecording) {
344 ret = vmlogrdr_recording(logptr,1,logptr->autopurge); 344 ret = vmlogrdr_recording(logptr,1,logptr->autopurge);
345 if (ret) 345 if (ret)
346 pr_warning("vmlogrdr: failed to start " 346 pr_warn("vmlogrdr: failed to start recording automatically\n");
347 "recording automatically\n");
348 } 347 }
349 348
350 /* create connection to the system service */ 349 /* create connection to the system service */
@@ -396,8 +395,7 @@ static int vmlogrdr_release (struct inode *inode, struct file *filp)
396 if (logptr->autorecording) { 395 if (logptr->autorecording) {
397 ret = vmlogrdr_recording(logptr,0,logptr->autopurge); 396 ret = vmlogrdr_recording(logptr,0,logptr->autopurge);
398 if (ret) 397 if (ret)
399 pr_warning("vmlogrdr: failed to stop " 398 pr_warn("vmlogrdr: failed to stop recording automatically\n");
400 "recording automatically\n");
401 } 399 }
402 logptr->dev_in_use = 0; 400 logptr->dev_in_use = 0;
403 401
diff --git a/drivers/s390/cio/blacklist.c b/drivers/s390/cio/blacklist.c
index 20314aad7ab7..9082476b51db 100644
--- a/drivers/s390/cio/blacklist.c
+++ b/drivers/s390/cio/blacklist.c
@@ -51,9 +51,8 @@ static int blacklist_range(range_action action, unsigned int from_ssid,
51{ 51{
52 if ((from_ssid > to_ssid) || ((from_ssid == to_ssid) && (from > to))) { 52 if ((from_ssid > to_ssid) || ((from_ssid == to_ssid) && (from > to))) {
53 if (msgtrigger) 53 if (msgtrigger)
54 pr_warning("0.%x.%04x to 0.%x.%04x is not a valid " 54 pr_warn("0.%x.%04x to 0.%x.%04x is not a valid range for cio_ignore\n",
55 "range for cio_ignore\n", from_ssid, from, 55 from_ssid, from, to_ssid, to);
56 to_ssid, to);
57 56
58 return 1; 57 return 1;
59 } 58 }
@@ -140,8 +139,8 @@ static int parse_busid(char *str, unsigned int *cssid, unsigned int *ssid,
140 rc = 0; 139 rc = 0;
141out: 140out:
142 if (rc && msgtrigger) 141 if (rc && msgtrigger)
143 pr_warning("%s is not a valid device for the cio_ignore " 142 pr_warn("%s is not a valid device for the cio_ignore kernel parameter\n",
144 "kernel parameter\n", str); 143 str);
145 144
146 return rc; 145 return rc;
147} 146}
diff --git a/drivers/s390/cio/ccwreq.c b/drivers/s390/cio/ccwreq.c
index 79f59915f71b..2782100b2c07 100644
--- a/drivers/s390/cio/ccwreq.c
+++ b/drivers/s390/cio/ccwreq.c
@@ -333,13 +333,12 @@ void ccw_request_timeout(struct ccw_device *cdev)
333 333
334 for (chp = 0; chp < 8; chp++) { 334 for (chp = 0; chp < 8; chp++) {
335 if ((0x80 >> chp) & sch->schib.pmcw.lpum) 335 if ((0x80 >> chp) & sch->schib.pmcw.lpum)
336 pr_warning("%s: No interrupt was received within %lus " 336 pr_warn("%s: No interrupt was received within %lus (CS=%02x, DS=%02x, CHPID=%x.%02x)\n",
337 "(CS=%02x, DS=%02x, CHPID=%x.%02x)\n", 337 dev_name(&cdev->dev), req->timeout / HZ,
338 dev_name(&cdev->dev), req->timeout / HZ, 338 scsw_cstat(&sch->schib.scsw),
339 scsw_cstat(&sch->schib.scsw), 339 scsw_dstat(&sch->schib.scsw),
340 scsw_dstat(&sch->schib.scsw), 340 sch->schid.cssid,
341 sch->schid.cssid, 341 sch->schib.pmcw.chpid[chp]);
342 sch->schib.pmcw.chpid[chp]);
343 } 342 }
344 343
345 if (!ccwreq_next_path(cdev)) { 344 if (!ccwreq_next_path(cdev)) {
diff --git a/drivers/s390/cio/cio.c b/drivers/s390/cio/cio.c
index 39a8ae54e9c1..de6fccc13124 100644
--- a/drivers/s390/cio/cio.c
+++ b/drivers/s390/cio/cio.c
@@ -656,7 +656,7 @@ struct subchannel *cio_probe_console(void)
656 656
657 sch_no = cio_get_console_sch_no(); 657 sch_no = cio_get_console_sch_no();
658 if (sch_no == -1) { 658 if (sch_no == -1) {
659 pr_warning("No CCW console was found\n"); 659 pr_warn("No CCW console was found\n");
660 return ERR_PTR(-ENODEV); 660 return ERR_PTR(-ENODEV);
661 } 661 }
662 init_subchannel_id(&schid); 662 init_subchannel_id(&schid);
diff --git a/drivers/s390/cio/device.c b/drivers/s390/cio/device.c
index 6aae68412802..7ada078ffdd0 100644
--- a/drivers/s390/cio/device.c
+++ b/drivers/s390/cio/device.c
@@ -364,11 +364,11 @@ int ccw_device_set_offline(struct ccw_device *cdev)
364 cdev->private->state == DEV_STATE_DISCONNECTED)); 364 cdev->private->state == DEV_STATE_DISCONNECTED));
365 /* Inform the user if set offline failed. */ 365 /* Inform the user if set offline failed. */
366 if (cdev->private->state == DEV_STATE_BOXED) { 366 if (cdev->private->state == DEV_STATE_BOXED) {
367 pr_warning("%s: The device entered boxed state while " 367 pr_warn("%s: The device entered boxed state while being set offline\n",
368 "being set offline\n", dev_name(&cdev->dev)); 368 dev_name(&cdev->dev));
369 } else if (cdev->private->state == DEV_STATE_NOT_OPER) { 369 } else if (cdev->private->state == DEV_STATE_NOT_OPER) {
370 pr_warning("%s: The device stopped operating while " 370 pr_warn("%s: The device stopped operating while being set offline\n",
371 "being set offline\n", dev_name(&cdev->dev)); 371 dev_name(&cdev->dev));
372 } 372 }
373 /* Give up reference from ccw_device_set_online(). */ 373 /* Give up reference from ccw_device_set_online(). */
374 put_device(&cdev->dev); 374 put_device(&cdev->dev);
@@ -429,13 +429,11 @@ int ccw_device_set_online(struct ccw_device *cdev)
429 spin_unlock_irq(cdev->ccwlock); 429 spin_unlock_irq(cdev->ccwlock);
430 /* Inform the user that set online failed. */ 430 /* Inform the user that set online failed. */
431 if (cdev->private->state == DEV_STATE_BOXED) { 431 if (cdev->private->state == DEV_STATE_BOXED) {
432 pr_warning("%s: Setting the device online failed " 432 pr_warn("%s: Setting the device online failed because it is boxed\n",
433 "because it is boxed\n", 433 dev_name(&cdev->dev));
434 dev_name(&cdev->dev));
435 } else if (cdev->private->state == DEV_STATE_NOT_OPER) { 434 } else if (cdev->private->state == DEV_STATE_NOT_OPER) {
436 pr_warning("%s: Setting the device online failed " 435 pr_warn("%s: Setting the device online failed because it is not operational\n",
437 "because it is not operational\n", 436 dev_name(&cdev->dev));
438 dev_name(&cdev->dev));
439 } 437 }
440 /* Give up online reference since onlining failed. */ 438 /* Give up online reference since onlining failed. */
441 put_device(&cdev->dev); 439 put_device(&cdev->dev);
@@ -619,9 +617,8 @@ initiate_logging(struct device *dev, struct device_attribute *attr,
619 617
620 rc = chsc_siosl(sch->schid); 618 rc = chsc_siosl(sch->schid);
621 if (rc < 0) { 619 if (rc < 0) {
622 pr_warning("Logging for subchannel 0.%x.%04x failed with " 620 pr_warn("Logging for subchannel 0.%x.%04x failed with errno=%d\n",
623 "errno=%d\n", 621 sch->schid.ssid, sch->schid.sch_no, rc);
624 sch->schid.ssid, sch->schid.sch_no, rc);
625 return rc; 622 return rc;
626 } 623 }
627 pr_notice("Logging for subchannel 0.%x.%04x was triggered\n", 624 pr_notice("Logging for subchannel 0.%x.%04x was triggered\n",
diff --git a/drivers/s390/net/lcs.c b/drivers/s390/net/lcs.c
index 2f5b518b0e78..251db0a02e73 100644
--- a/drivers/s390/net/lcs.c
+++ b/drivers/s390/net/lcs.c
@@ -1761,8 +1761,8 @@ lcs_get_control(struct lcs_card *card, struct lcs_cmd *cmd)
1761 lcs_schedule_recovery(card); 1761 lcs_schedule_recovery(card);
1762 break; 1762 break;
1763 case LCS_CMD_STOPLAN: 1763 case LCS_CMD_STOPLAN:
1764 pr_warning("Stoplan for %s initiated by LGW.\n", 1764 pr_warn("Stoplan for %s initiated by LGW\n",
1765 card->dev->name); 1765 card->dev->name);
1766 if (card->dev) 1766 if (card->dev)
1767 netif_carrier_off(card->dev); 1767 netif_carrier_off(card->dev);
1768 break; 1768 break;
diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c
index 7c8c68c26540..ac544330daeb 100644
--- a/drivers/s390/net/qeth_l3_main.c
+++ b/drivers/s390/net/qeth_l3_main.c
@@ -3624,7 +3624,7 @@ static int qeth_l3_register_notifiers(void)
3624 return rc; 3624 return rc;
3625 } 3625 }
3626#else 3626#else
3627 pr_warning("There is no IPv6 support for the layer 3 discipline\n"); 3627 pr_warn("There is no IPv6 support for the layer 3 discipline\n");
3628#endif 3628#endif
3629 return 0; 3629 return 0;
3630} 3630}