diff options
author | 2003-05-17 18:25:51 +0000 | |
---|---|---|
committer | 2003-05-17 18:25:51 +0000 | |
commit | 7418b3e565bab2a66f6303ea15fbd7e62af99f76 (patch) | |
tree | 38789a715be5835056c08913b56086e99d5513aa | |
parent | Cannot use strlcpy() for strings in struct utmp since they are not guaranteed (diff) | |
download | wireguard-openbsd-7418b3e565bab2a66f6303ea15fbd7e62af99f76.tar.xz wireguard-openbsd-7418b3e565bab2a66f6303ea15fbd7e62af99f76.zip |
Mention in the 'status cmd failed' message the scsi command that
failed.
ok nate@.
-rw-r--r-- | sys/dev/usb/umass_scsi.c | 5 |
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; |