[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>
This commit is contained in:
Michael Brown
2010-09-15 22:23:48 +01:00
parent 52e54a8c69
commit 5e697b64a5
2 changed files with 65 additions and 1 deletions

View File

@@ -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 */