aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Efremov <[email protected]>2020-05-01 16:44:13 +0300
committerDenis Efremov <[email protected]>2020-05-12 19:34:56 +0300
commit29ac67633c893dec0024fb7597860fde52fdc819 (patch)
tree394d9547aa9c38b2d9141b649cce9d56c3d8b4b9
parentca1b409a3b8a190c13bb30ed3ad91585d434d8e2 (diff)
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/[email protected] Suggested-by: Joe Perches <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Denis Efremov <[email protected]>
-rw-r--r--drivers/block/floppy.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c
index 2817170dd403..3ab6e804b5ec 100644
--- a/drivers/block/floppy.c
+++ b/drivers/block/floppy.c
@@ -1069,12 +1069,9 @@ static void setup_DMA(void)
unsigned long f;
if (raw_cmd->length == 0) {
- int i;
-
- pr_info("zero dma transfer size:");
- for (i = 0; i < raw_cmd->cmd_count; i++)
- pr_cont("%x,", raw_cmd->cmd[i]);
- pr_cont("\n");
+ print_hex_dump(KERN_INFO, "zero dma transfer size: ",
+ DUMP_PREFIX_NONE, 16, 1,
+ raw_cmd->cmd, raw_cmd->cmd_count, false);
cont->done(0);
fdc_state[current_fdc].reset = 1;
return;