scsi: use external buffer for command logging
Use an external buffer for __scsi_print_command() and move command logging over to use the per-cpu logging buffer. With that we can guarantee the command always will always be formatted in one line. So we can even print out a variable length command correctly across several lines. Finally rename __scsi_print_command() to __scsi_format_comment() to better reflect the functionality. Tested-by: Robert Elliott <elliott@hp.com> Reviewed-by: Robert Elliott <elliott@hp.com> Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:

committed by
Christoph Hellwig

parent
aa66ab35f2
commit
9e5ed2a5b3
@@ -195,6 +195,9 @@ enum scsi_timeouts {
|
||||
#define ATA_16 0x85 /* 16-byte pass-thru */
|
||||
#define ATA_12 0xa1 /* 12-byte pass-thru */
|
||||
|
||||
/* Vendor specific CDBs start here */
|
||||
#define VENDOR_SPECIFIC_CDB 0xc0
|
||||
|
||||
/*
|
||||
* SCSI command lengths
|
||||
*/
|
||||
|
Reference in New Issue
Block a user