diff options
author | Horst Hummel <horst.hummel@de.ibm.com> | 2006-12-08 09:54:15 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2006-12-08 09:54:15 -0500 |
commit | 9575bf265711cabe7147a68003a56a9f19f034da (patch) | |
tree | d13dc1c76470ba24fc1d8333adf6890a45df327a /drivers/s390/block/dasd.c | |
parent | 85eca8503997cf3a869b159954f703530c865299 (diff) |
[S390] New DASD feature for ERP related logging
It is now possible to enable/disable ERP related logging without re-compile
and re-ipl. A additional sysfs-attribute 'erplog' allows to switch the
logging non-interruptive.
Signed-off-by: Horst Hummel <horst.hummel@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/block/dasd.c')
-rw-r--r-- | drivers/s390/block/dasd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/s390/block/dasd.c b/drivers/s390/block/dasd.c index 2af2d9b53d18..492b68bcd7cc 100644 --- a/drivers/s390/block/dasd.c +++ b/drivers/s390/block/dasd.c | |||
@@ -1050,10 +1050,10 @@ dasd_int_handler(struct ccw_device *cdev, unsigned long intparm, | |||
1050 | } | 1050 | } |
1051 | } else { /* error */ | 1051 | } else { /* error */ |
1052 | memcpy(&cqr->irb, irb, sizeof (struct irb)); | 1052 | memcpy(&cqr->irb, irb, sizeof (struct irb)); |
1053 | #ifdef ERP_DEBUG | 1053 | if (device->features & DASD_FEATURE_ERPLOG) { |
1054 | /* dump sense data */ | 1054 | /* dump sense data */ |
1055 | dasd_log_sense(cqr, irb); | 1055 | dasd_log_sense(cqr, irb); |
1056 | #endif | 1056 | } |
1057 | switch (era) { | 1057 | switch (era) { |
1058 | case dasd_era_fatal: | 1058 | case dasd_era_fatal: |
1059 | cqr->status = DASD_CQR_FAILED; | 1059 | cqr->status = DASD_CQR_FAILED; |