提交 29ac6763 编写于 作者: D Denis Efremov

floppy: use print_hex_dump() in setup_DMA()

Remove pr_cont() and use print_hex_dump() in setup_DMA() to print the
contents of the cmd buffer.

Link: https://lore.kernel.org/r/20200501134416.72248-2-efremov@linux.comSuggested-by: NJoe Perches <joe@perches.com>
Reviewed-by: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NDenis Efremov <efremov@linux.com>
上级 ca1b409a
...@@ -1069,12 +1069,9 @@ static void setup_DMA(void) ...@@ -1069,12 +1069,9 @@ static void setup_DMA(void)
unsigned long f; unsigned long f;
if (raw_cmd->length == 0) { if (raw_cmd->length == 0) {
int i; print_hex_dump(KERN_INFO, "zero dma transfer size: ",
DUMP_PREFIX_NONE, 16, 1,
pr_info("zero dma transfer size:"); raw_cmd->cmd, raw_cmd->cmd_count, false);
for (i = 0; i < raw_cmd->cmd_count; i++)
pr_cont("%x,", raw_cmd->cmd[i]);
pr_cont("\n");
cont->done(0); cont->done(0);
fdc_state[current_fdc].reset = 1; fdc_state[current_fdc].reset = 1;
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部