david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

Added debug strings.

This commit is contained in:
Michael Brown 2006-08-16 00:05:24 +00:00
parent bb3df618b8
commit cf2178f885
1 changed files with 12 additions and 1 deletions

View File

@ -147,9 +147,20 @@ union scsi_cdb {
struct scsi_cdb_write_16 write16;
struct scsi_cdb_read_capacity_10 readcap10;
struct scsi_cdb_read_capacity_16 readcap16;
char bytes[16];
unsigned char bytes[16];
};
/** printf() format for dumping a scsi_cdb */
#define SCSI_CDB_FORMAT "%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x:" \
"%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x"
/** printf() parameters for dumping a scsi_cdb */
#define SCSI_CDB_DATA(cdb) \
(cdb).bytes[0], (cdb).bytes[1], (cdb).bytes[2], (cdb).bytes[3], \
(cdb).bytes[4], (cdb).bytes[5], (cdb).bytes[6], (cdb).bytes[7], \
(cdb).bytes[8], (cdb).bytes[9], (cdb).bytes[10], (cdb).bytes[11], \
(cdb).bytes[12], (cdb).bytes[13], (cdb).bytes[14], (cdb).bytes[15]
/** @} */
/** A SCSI command */