Be more verbose when returning XS_DRIVER_STUFFUP

This commit is contained in:
bouyer 2002-05-18 16:09:43 +00:00
parent d3b63faa30
commit af09484589
2 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: esiop.c,v 1.15 2002/05/16 02:50:53 thorpej Exp $ */
/* $NetBSD: esiop.c,v 1.16 2002/05/18 16:09:43 bouyer Exp $ */
/*
* Copyright (c) 2002 Manuel Bouyer.
@ -33,7 +33,7 @@
/* SYM53c7/8xx PCI-SCSI I/O Processors driver */
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: esiop.c,v 1.15 2002/05/16 02:50:53 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: esiop.c,v 1.16 2002/05/18 16:09:43 bouyer Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -1158,6 +1158,8 @@ esiop_scsicmd_end(esiop_cmd)
xs->error = XS_SELTIMEOUT;
break;
default:
scsipi_printaddr(xs->xs_periph);
printf("invalid status code %d\n", xs->status);
xs->error = XS_DRIVER_STUFFUP;
}
if (xs->xs_control & (XS_CTL_DATA_IN | XS_CTL_DATA_OUT)) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: siop.c,v 1.61 2002/05/16 02:50:53 thorpej Exp $ */
/* $NetBSD: siop.c,v 1.62 2002/05/18 16:09:44 bouyer Exp $ */
/*
* Copyright (c) 2000 Manuel Bouyer.
@ -33,7 +33,7 @@
/* SYM53c7/8xx PCI-SCSI I/O Processors driver */
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: siop.c,v 1.61 2002/05/16 02:50:53 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: siop.c,v 1.62 2002/05/18 16:09:44 bouyer Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -1004,6 +1004,8 @@ siop_scsicmd_end(siop_cmd)
xs->error = XS_SELTIMEOUT;
break;
default:
scsipi_printaddr(xs->xs_periph);
printf("invalid status code %d\n", xs->status);
xs->error = XS_DRIVER_STUFFUP;
}
if (xs->xs_control & (XS_CTL_DATA_IN | XS_CTL_DATA_OUT)) {