linux/drivers/scsi/scsi_debugfs.c
<<
>>
Prefs
   1#include <linux/seq_file.h>
   2#include <scsi/scsi_cmnd.h>
   3#include <scsi/scsi_dbg.h>
   4#include "scsi_debugfs.h"
   5
   6void scsi_show_rq(struct seq_file *m, struct request *rq)
   7{
   8        struct scsi_cmnd *cmd = container_of(scsi_req(rq), typeof(*cmd), req);
   9        char buf[80];
  10
  11        __scsi_format_command(buf, sizeof(buf), cmd->cmnd, cmd->cmd_len);
  12        seq_printf(m, ", .cmd=%s", buf);
  13}
  14