mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 10:47:04 +07:00
14 lines
361 B
C
14 lines
361 B
C
|
#include <linux/seq_file.h>
|
||
|
#include <scsi/scsi_cmnd.h>
|
||
|
#include <scsi/scsi_dbg.h>
|
||
|
#include "scsi_debugfs.h"
|
||
|
|
||
|
void scsi_show_rq(struct seq_file *m, struct request *rq)
|
||
|
{
|
||
|
struct scsi_cmnd *cmd = container_of(scsi_req(rq), typeof(*cmd), req);
|
||
|
char buf[80];
|
||
|
|
||
|
__scsi_format_command(buf, sizeof(buf), cmd->cmnd, cmd->cmd_len);
|
||
|
seq_printf(m, ", .cmd=%s", buf);
|
||
|
}
|