summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2003-05-17 18:25:52 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2003-05-17 18:25:52 +0000
commitc713b6d5ff450e3554a4329d345a21c5d01706c6 (patch)
tree935573eab40fe4a6f924b2b80f7a7a1a0fab2f6e /sys/dev/usb
parent63cb7e9006604dd26df7a610ef62a2d8dc670fe8 (diff)
Mention in the 'status cmd failed' message the scsi command that
failed. ok nate@.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/umass_scsi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/usb/umass_scsi.c b/sys/dev/usb/umass_scsi.c
index 0c7f4b91f5c..c3b02652442 100644
--- a/sys/dev/usb/umass_scsi.c
+++ b/sys/dev/usb/umass_scsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: umass_scsi.c,v 1.3 2003/05/17 06:07:57 nate Exp $ */
+/* $OpenBSD: umass_scsi.c,v 1.4 2003/05/17 18:25:51 krw Exp $ */
/* $NetBSD: umass_scsipi.c,v 1.9 2003/02/16 23:14:08 augustss Exp $ */
/*
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -374,7 +374,8 @@ umass_scsi_cb(struct umass_softc *sc, void *priv, int residue, int status)
}
/* FALLTHROUGH */
case STATUS_CMD_FAILED:
- printf("umass_scsi_cb: status cmd failed\n");
+ printf("umass_scsi_cb: status cmd failed for scsi op 0x%02x\n",
+ xs->cmd->opcode);
/* fetch sense data */
memset(&scbus->sc_sense_cmd, 0, sizeof(scbus->sc_sense_cmd));
scbus->sc_sense_cmd.opcode = REQUEST_SENSE;