diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2005-08-17 06:41:07 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2005-08-17 06:41:07 +0000 |
commit | d073f0c8e2ef7da95c95eaaaa0dfbeb879d77eaf (patch) | |
tree | dfe7ae7b9fc8fb9913e0b8c440c19c94034f462d /sys/dev/ic/ami.c | |
parent | 9f662dd6e3e25a591dda96388b937e5d96ca0c9e (diff) |
WRITE_BUFFER is a valid command to make it to the passthru busses. make
the unsupported command printf use hex instead of decimal when printing
while im here so i dont have to think and do maths to figure out what
it is complaining about
ok marco@
Diffstat (limited to 'sys/dev/ic/ami.c')
-rw-r--r-- | sys/dev/ic/ami.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/ic/ami.c b/sys/dev/ic/ami.c index edb0c9ad0f0..b12ed19504c 100644 --- a/sys/dev/ic/ami.c +++ b/sys/dev/ic/ami.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ami.c,v 1.62 2005/08/17 06:31:01 marco Exp $ */ +/* $OpenBSD: ami.c,v 1.63 2005/08/17 06:41:06 dlg Exp $ */ /* * Copyright (c) 2001 Michael Shalayeff @@ -1363,6 +1363,7 @@ ami_scsi_raw_cmd(xs) case READ_CAPACITY: case READ_COMMAND: case READ_BIG: + case WRITE_BUFFER: case READ_BUFFER: case RECEIVE_DIAGNOSTIC: if (!cold) /* XXX bogus */ @@ -1374,8 +1375,8 @@ ami_scsi_raw_cmd(xs) break; default: - printf("%s: unsupported command(%d)\n", sc->sc_dev.dv_xname, - xs->cmd->opcode); + printf("%s: unsupported command(0x%02x)\n", + sc->sc_dev.dv_xname, xs->cmd->opcode); bzero(&xs->sense, sizeof(xs->sense)); xs->sense.error_code = SSD_ERRCODE_VALID | 0x70; xs->sense.flags = SKEY_ILLEGAL_REQUEST; |