aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/block/dasd_eckd.c
diff options
context:
space:
mode:
authorStefan Haberland <stefan.haberland@de.ibm.com>2009-12-07 06:51:52 -0500
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>2009-12-07 06:51:35 -0500
commitb8ed5dd54895647c2690575aad6f07748c2c618a (patch)
treeaee2f9cd2a418691828bd95c09406e6424fd2235 /drivers/s390/block/dasd_eckd.c
parenteb6e199bef288611157b8198c25d12b32bf058d0 (diff)
[S390] dasd: remove strings from s390dbf
Remove strings from s390 debugfeature entries that could lead to a crash when the data is read from dbf because the strings do not exist any more. Signed-off-by: Stefan Haberland <stefan.haberland@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/block/dasd_eckd.c')
-rw-r--r--drivers/s390/block/dasd_eckd.c44
1 files changed, 19 insertions, 25 deletions
diff --git a/drivers/s390/block/dasd_eckd.c b/drivers/s390/block/dasd_eckd.c
index 39ffc84712f0..e38a09b5feae 100644
--- a/drivers/s390/block/dasd_eckd.c
+++ b/drivers/s390/block/dasd_eckd.c
@@ -93,9 +93,9 @@ dasd_eckd_probe (struct ccw_device *cdev)
93 ret = ccw_device_set_options(cdev, CCWDEV_ALLOW_FORCE | 93 ret = ccw_device_set_options(cdev, CCWDEV_ALLOW_FORCE |
94 CCWDEV_DO_PATHGROUP | CCWDEV_DO_MULTIPATH); 94 CCWDEV_DO_PATHGROUP | CCWDEV_DO_MULTIPATH);
95 if (ret) { 95 if (ret) {
96 DBF_EVENT(DBF_WARNING, 96 DBF_EVENT_DEVID(DBF_WARNING, cdev, "%s",
97 "dasd_eckd_probe: could not set ccw-device options " 97 "dasd_eckd_probe: could not set "
98 "for %s\n", dev_name(&cdev->dev)); 98 "ccw-device options");
99 return ret; 99 return ret;
100 } 100 }
101 ret = dasd_generic_probe(cdev, &dasd_eckd_discipline); 101 ret = dasd_generic_probe(cdev, &dasd_eckd_discipline);
@@ -889,16 +889,15 @@ static int dasd_eckd_read_conf(struct dasd_device *device)
889 rc = dasd_eckd_read_conf_lpm(device, &conf_data, 889 rc = dasd_eckd_read_conf_lpm(device, &conf_data,
890 &conf_len, lpm); 890 &conf_len, lpm);
891 if (rc && rc != -EOPNOTSUPP) { /* -EOPNOTSUPP is ok */ 891 if (rc && rc != -EOPNOTSUPP) { /* -EOPNOTSUPP is ok */
892 DBF_EVENT(DBF_WARNING, 892 DBF_EVENT_DEVID(DBF_WARNING, device->cdev,
893 "Read configuration data returned " 893 "Read configuration data returned "
894 "error %d for device: %s", rc, 894 "error %d", rc);
895 dev_name(&device->cdev->dev));
896 return rc; 895 return rc;
897 } 896 }
898 if (conf_data == NULL) { 897 if (conf_data == NULL) {
899 DBF_EVENT(DBF_WARNING, "No configuration " 898 DBF_EVENT_DEVID(DBF_WARNING, device->cdev, "%s",
900 "data retrieved for device: %s", 899 "No configuration data "
901 dev_name(&device->cdev->dev)); 900 "retrieved");
902 continue; /* no error */ 901 continue; /* no error */
903 } 902 }
904 /* save first valid configuration data */ 903 /* save first valid configuration data */
@@ -945,9 +944,8 @@ static int dasd_eckd_read_features(struct dasd_device *device)
945 sizeof(struct dasd_rssd_features)), 944 sizeof(struct dasd_rssd_features)),
946 device); 945 device);
947 if (IS_ERR(cqr)) { 946 if (IS_ERR(cqr)) {
948 DBF_EVENT(DBF_WARNING, "Could not allocate initialization " 947 DBF_EVENT_DEVID(DBF_WARNING, device->cdev, "%s", "Could not "
949 "request for device: %s", 948 "allocate initialization request");
950 dev_name(&device->cdev->dev));
951 return PTR_ERR(cqr); 949 return PTR_ERR(cqr);
952 } 950 }
953 cqr->startdev = device; 951 cqr->startdev = device;
@@ -1076,10 +1074,8 @@ static int dasd_eckd_validate_server(struct dasd_device *device)
1076 /* may be requested feature is not available on server, 1074 /* may be requested feature is not available on server,
1077 * therefore just report error and go ahead */ 1075 * therefore just report error and go ahead */
1078 private = (struct dasd_eckd_private *) device->private; 1076 private = (struct dasd_eckd_private *) device->private;
1079 DBF_EVENT(DBF_WARNING, "PSF-SSC on storage subsystem %s.%s.%04x " 1077 DBF_EVENT_DEVID(DBF_WARNING, device->cdev, "PSF-SSC for SSID %04x "
1080 "returned rc=%d for device: %s", 1078 "returned rc=%d", private->uid.ssid, rc);
1081 private->uid.vendor, private->uid.serial,
1082 private->uid.ssid, rc, dev_name(&device->cdev->dev));
1083 /* RE-Read Configuration Data */ 1079 /* RE-Read Configuration Data */
1084 return dasd_eckd_read_conf(device); 1080 return dasd_eckd_read_conf(device);
1085} 1081}
@@ -1137,9 +1133,9 @@ dasd_eckd_check_characteristics(struct dasd_device *device)
1137 if (private->uid.type == UA_BASE_DEVICE) { 1133 if (private->uid.type == UA_BASE_DEVICE) {
1138 block = dasd_alloc_block(); 1134 block = dasd_alloc_block();
1139 if (IS_ERR(block)) { 1135 if (IS_ERR(block)) {
1140 DBF_EVENT(DBF_WARNING, "could not allocate dasd " 1136 DBF_EVENT_DEVID(DBF_WARNING, device->cdev, "%s",
1141 "block structure for device: %s", 1137 "could not allocate dasd "
1142 dev_name(&device->cdev->dev)); 1138 "block structure");
1143 rc = PTR_ERR(block); 1139 rc = PTR_ERR(block);
1144 goto out_err1; 1140 goto out_err1;
1145 } 1141 }
@@ -1167,9 +1163,8 @@ dasd_eckd_check_characteristics(struct dasd_device *device)
1167 rc = dasd_generic_read_dev_chars(device, DASD_ECKD_MAGIC, 1163 rc = dasd_generic_read_dev_chars(device, DASD_ECKD_MAGIC,
1168 &private->rdc_data, 64); 1164 &private->rdc_data, 64);
1169 if (rc) { 1165 if (rc) {
1170 DBF_EVENT(DBF_WARNING, 1166 DBF_EVENT_DEVID(DBF_WARNING, device->cdev,
1171 "Read device characteristics failed, rc=%d for " 1167 "Read device characteristic failed, rc=%d", rc);
1172 "device: %s", rc, dev_name(&device->cdev->dev));
1173 goto out_err3; 1168 goto out_err3;
1174 } 1169 }
1175 /* find the vaild cylinder size */ 1170 /* find the vaild cylinder size */
@@ -3300,9 +3295,8 @@ int dasd_eckd_restore_device(struct dasd_device *device)
3300 rc = dasd_generic_read_dev_chars(device, DASD_ECKD_MAGIC, 3295 rc = dasd_generic_read_dev_chars(device, DASD_ECKD_MAGIC,
3301 &temp_rdc_data, 64); 3296 &temp_rdc_data, 64);
3302 if (rc) { 3297 if (rc) {
3303 DBF_EVENT(DBF_WARNING, 3298 DBF_EVENT_DEVID(DBF_WARNING, device->cdev,
3304 "Read device characteristics failed, rc=%d for " 3299 "Read device characteristic failed, rc=%d", rc);
3305 "device: %s", rc, dev_name(&device->cdev->dev));
3306 goto out_err; 3300 goto out_err;
3307 } 3301 }
3308 spin_lock_irqsave(get_ccwdev_lock(device->cdev), flags); 3302 spin_lock_irqsave(get_ccwdev_lock(device->cdev), flags);