Introduce helper function scsi_opcode_str

Convert SCSI opcode into string for trouble shooting.

Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
This commit is contained in:
zhenwei pi
2023-11-03 12:17:38 +08:00
parent 6e8497e53f
commit 283e99b322
2 changed files with 102 additions and 0 deletions

View File

@@ -205,6 +205,8 @@ EXTERN const char *scsi_sense_ascq_str(int ascq);
EXTERN const char *scsi_pr_type_str(enum scsi_persistent_out_type pr_type);
EXTERN const char *scsi_opcode_str(int opcode);
enum scsi_xfer_dir {
SCSI_XFER_NONE = 0,
SCSI_XFER_READ = 1,