From c2f7555fda2eddf75007a8e5747e995684fd0071 Mon Sep 17 00:00:00 2001 From: mycroft Date: Tue, 20 Apr 1993 10:51:51 +0000 Subject: [PATCH] Display more meaningful message on SCSI `unit attention'. --- sys/dev/scsipi/cd.c | 2 +- sys/dev/scsipi/ch.c | 2 +- sys/dev/scsipi/sd.c | 2 +- sys/dev/scsipi/st.c | 2 +- sys/scsi/cd.c | 2 +- sys/scsi/ch.c | 2 +- sys/scsi/sd.c | 2 +- sys/scsi/st.c | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sys/dev/scsipi/cd.c b/sys/dev/scsipi/cd.c index 86f58ad0eea3..ab2c8fa9e307 100644 --- a/sys/dev/scsipi/cd.c +++ b/sys/dev/scsipi/cd.c @@ -1560,7 +1560,7 @@ struct scsi_xfer *xs; unit); return(EINVAL); case 0x6: - if(!silent)printf("cd%d: Unit attention.\n", unit); + if(!silent)printf("cd%d: media change\n", unit); if (cd_data[unit]->openparts) cd_data[unit]->flags &= ~(CDVALID | CDHAVELABEL); { diff --git a/sys/dev/scsipi/ch.c b/sys/dev/scsipi/ch.c index 1e7469b66b88..7a7f23fed644 100644 --- a/sys/dev/scsipi/ch.c +++ b/sys/dev/scsipi/ch.c @@ -879,7 +879,7 @@ struct scsi_xfer *xs; sense->ext.extended.info[13] ; return(EINVAL); case 0x6: - if(!silent) printf("st%d: Unit attention.\n ", unit); + if(!silent)printf("st%d: media change\n", unit); ch_data[unit].lsterr=(sense->ext.extended.info[12]<<8)| sense->ext.extended.info[13] ; ch_info_valid[unit] = FALSE; diff --git a/sys/dev/scsipi/sd.c b/sys/dev/scsipi/sd.c index b8b8f25a384b..980ecc6eab80 100644 --- a/sys/dev/scsipi/sd.c +++ b/sys/dev/scsipi/sd.c @@ -1178,7 +1178,7 @@ sd_interpret_sense(int unit, struct scsi_xfer *xs) * sure that we don't have any residual state */ if(!silent) - printf("sd%d: Unit attention.\n ", unit); + printf("sd%d: reset\n", unit); sd->flags &= ~(SDVALID | SDHAVELABEL); if (sd->openparts) return EIO; diff --git a/sys/dev/scsipi/st.c b/sys/dev/scsipi/st.c index c5498692bbf4..868d493c2a31 100644 --- a/sys/dev/scsipi/st.c +++ b/sys/dev/scsipi/st.c @@ -1317,7 +1317,7 @@ st_interpret_sense(int unit, struct scsi_xfer *xs) return EINVAL; case 0x6: if(!silent) - printf("st%d: Unit attention.\n", unit); + printf("st%d: media change\n", unit); st->flags &= ~(ST_AT_FILEMARK|ST_AT_EOM); st->info_valid = FALSE; if (st->flags & ST_OPEN) /* TEMP!!!! */ diff --git a/sys/scsi/cd.c b/sys/scsi/cd.c index 86f58ad0eea3..ab2c8fa9e307 100644 --- a/sys/scsi/cd.c +++ b/sys/scsi/cd.c @@ -1560,7 +1560,7 @@ struct scsi_xfer *xs; unit); return(EINVAL); case 0x6: - if(!silent)printf("cd%d: Unit attention.\n", unit); + if(!silent)printf("cd%d: media change\n", unit); if (cd_data[unit]->openparts) cd_data[unit]->flags &= ~(CDVALID | CDHAVELABEL); { diff --git a/sys/scsi/ch.c b/sys/scsi/ch.c index 1e7469b66b88..7a7f23fed644 100644 --- a/sys/scsi/ch.c +++ b/sys/scsi/ch.c @@ -879,7 +879,7 @@ struct scsi_xfer *xs; sense->ext.extended.info[13] ; return(EINVAL); case 0x6: - if(!silent) printf("st%d: Unit attention.\n ", unit); + if(!silent)printf("st%d: media change\n", unit); ch_data[unit].lsterr=(sense->ext.extended.info[12]<<8)| sense->ext.extended.info[13] ; ch_info_valid[unit] = FALSE; diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index b8b8f25a384b..980ecc6eab80 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -1178,7 +1178,7 @@ sd_interpret_sense(int unit, struct scsi_xfer *xs) * sure that we don't have any residual state */ if(!silent) - printf("sd%d: Unit attention.\n ", unit); + printf("sd%d: reset\n", unit); sd->flags &= ~(SDVALID | SDHAVELABEL); if (sd->openparts) return EIO; diff --git a/sys/scsi/st.c b/sys/scsi/st.c index c5498692bbf4..868d493c2a31 100644 --- a/sys/scsi/st.c +++ b/sys/scsi/st.c @@ -1317,7 +1317,7 @@ st_interpret_sense(int unit, struct scsi_xfer *xs) return EINVAL; case 0x6: if(!silent) - printf("st%d: Unit attention.\n", unit); + printf("st%d: media change\n", unit); st->flags &= ~(ST_AT_FILEMARK|ST_AT_EOM); st->info_valid = FALSE; if (st->flags & ST_OPEN) /* TEMP!!!! */