Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[S390] dasd: fix message naming

This patch fixes message naming so that generic dasd messages do not
contain the device discipline. For this purpose the dev_ makros are
replaced by pr_ makros for generic dasd messages.

Signed-off-by: Stefan Haberland <stefan.haberland@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

authored by

Stefan Haberland and committed by
Martin Schwidefsky
ca99dab0 68b781fe

+20 -20
+1 -1
drivers/s390/block/dasd_3990_erp.c
··· 7 7 * 8 8 */ 9 9 10 - #define KMSG_COMPONENT "dasd" 10 + #define KMSG_COMPONENT "dasd-eckd" 11 11 12 12 #include <linux/timer.h> 13 13 #include <linux/slab.h>
+1 -1
drivers/s390/block/dasd_alias.c
··· 5 5 * Author(s): Stefan Weinhuber <wein@de.ibm.com> 6 6 */ 7 7 8 - #define KMSG_COMPONENT "dasd" 8 + #define KMSG_COMPONENT "dasd-eckd" 9 9 10 10 #include <linux/list.h> 11 11 #include <asm/ebcdic.h>
+1 -1
drivers/s390/block/dasd_diag.c
··· 8 8 * 9 9 */ 10 10 11 - #define KMSG_COMPONENT "dasd" 11 + #define KMSG_COMPONENT "dasd-diag" 12 12 13 13 #include <linux/stddef.h> 14 14 #include <linux/kernel.h>
+1 -1
drivers/s390/block/dasd_eckd.c
··· 10 10 * Author.........: Nigel Hislop <hislop_nigel@emc.com> 11 11 */ 12 12 13 - #define KMSG_COMPONENT "dasd" 13 + #define KMSG_COMPONENT "dasd-eckd" 14 14 15 15 #include <linux/stddef.h> 16 16 #include <linux/kernel.h>
+1 -1
drivers/s390/block/dasd_eer.c
··· 6 6 * Author(s): Stefan Weinhuber <wein@de.ibm.com> 7 7 */ 8 8 9 - #define KMSG_COMPONENT "dasd" 9 + #define KMSG_COMPONENT "dasd-eckd" 10 10 11 11 #include <linux/init.h> 12 12 #include <linux/fs.h>
+2 -2
drivers/s390/block/dasd_erp.c
··· 99 99 cqr->lpm = LPM_ANYPATH; 100 100 cqr->status = DASD_CQR_FILLED; 101 101 } else { 102 - dev_err(&device->cdev->dev, 103 - "default ERP has run out of retries and failed\n"); 102 + pr_err("%s: default ERP has run out of retries and failed\n", 103 + dev_name(&device->cdev->dev)); 104 104 cqr->status = DASD_CQR_FAILED; 105 105 cqr->stopclk = get_clock(); 106 106 }
+1 -1
drivers/s390/block/dasd_fba.c
··· 5 5 * Copyright IBM Corp. 1999, 2009 6 6 */ 7 7 8 - #define KMSG_COMPONENT "dasd" 8 + #define KMSG_COMPONENT "dasd-fba" 9 9 10 10 #include <linux/stddef.h> 11 11 #include <linux/kernel.h>
+12 -12
drivers/s390/block/dasd_ioctl.c
··· 98 98 if (!capable (CAP_SYS_ADMIN)) 99 99 return -EACCES; 100 100 101 - dev_info(&base->cdev->dev, "The DASD has been put in the quiesce " 102 - "state\n"); 101 + pr_info("%s: The DASD has been put in the quiesce " 102 + "state\n", dev_name(&base->cdev->dev)); 103 103 spin_lock_irqsave(get_ccwdev_lock(base->cdev), flags); 104 104 base->stopped |= DASD_STOPPED_QUIESCE; 105 105 spin_unlock_irqrestore(get_ccwdev_lock(base->cdev), flags); ··· 119 119 if (!capable (CAP_SYS_ADMIN)) 120 120 return -EACCES; 121 121 122 - dev_info(&base->cdev->dev, "I/O operations have been resumed " 123 - "on the DASD\n"); 122 + pr_info("%s: I/O operations have been resumed " 123 + "on the DASD\n", dev_name(&base->cdev->dev)); 124 124 spin_lock_irqsave(get_ccwdev_lock(base->cdev), flags); 125 125 base->stopped &= ~DASD_STOPPED_QUIESCE; 126 126 spin_unlock_irqrestore(get_ccwdev_lock(base->cdev), flags); ··· 146 146 return -EPERM; 147 147 148 148 if (base->state != DASD_STATE_BASIC) { 149 - dev_warn(&base->cdev->dev, 150 - "The DASD cannot be formatted while it is enabled\n"); 149 + pr_warning("%s: The DASD cannot be formatted while it is " 150 + "enabled\n", dev_name(&base->cdev->dev)); 151 151 return -EBUSY; 152 152 } 153 153 ··· 175 175 dasd_sfree_request(cqr, cqr->memdev); 176 176 if (rc) { 177 177 if (rc != -ERESTARTSYS) 178 - dev_err(&base->cdev->dev, 179 - "Formatting unit %d failed with " 180 - "rc=%d\n", fdata->start_unit, rc); 178 + pr_err("%s: Formatting unit %d failed with " 179 + "rc=%d\n", dev_name(&base->cdev->dev), 180 + fdata->start_unit, rc); 181 181 return rc; 182 182 } 183 183 fdata->start_unit++; ··· 204 204 if (copy_from_user(&fdata, argp, sizeof(struct format_data_t))) 205 205 return -EFAULT; 206 206 if (bdev != bdev->bd_contains) { 207 - dev_warn(&block->base->cdev->dev, 208 - "The specified DASD is a partition and cannot be " 209 - "formatted\n"); 207 + pr_warning("%s: The specified DASD is a partition and cannot " 208 + "be formatted\n", 209 + dev_name(&block->base->cdev->dev)); 210 210 return -EINVAL; 211 211 } 212 212 return dasd_format(block, &fdata);