diff options
author | Michael Brown <mcb30@ipxe.org> | 2010-09-15 22:23:48 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2010-09-15 22:23:48 +0100 |
commit | 5e697b64a57d18f508bdbe29093e78dc7e4af1be (patch) | |
tree | a56efa2076d2cc2745abc0594b930f2e0052dada /src/include/ipxe/scsi.h | |
parent | 52e54a8c69351ee1455f8fbf2a9cd5d27d42f7ab (diff) | |
download | ipxe-5e697b64a57d18f508bdbe29093e78dc7e4af1be.tar.gz |
[scsi] Include sense key within error number reported to user
The sense key gives a first idea of what the problem might be, and so
is potentially useful in diagnosing problems in a non-debug build.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/scsi.h')
-rw-r--r-- | src/include/ipxe/scsi.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/ipxe/scsi.h b/src/include/ipxe/scsi.h index b90aa3aa0..5539b61d0 100644 --- a/src/include/ipxe/scsi.h +++ b/src/include/ipxe/scsi.h @@ -267,6 +267,9 @@ struct scsi_sns { uint32_t info; }; +/** SCSI sense key mask */ +#define SCSI_SENSE_KEY_MASK 0x0f + /** A SCSI response information unit */ struct scsi_rsp { /** SCSI status code */ |