Skip to content

Commit 797f629

Browse files
Haoyu Lufloatious
authored andcommitted
ata: pata_arasan_cf: fix missing newline in dev_err() messages
Add missing trailing newlines to dev_err() messages in pata_arasan_cf.c. This keeps the error output as properly terminated log lines. Acked-by: Viresh Kumar <vireshk@kernel.org> Signed-off-by: Haoyu Lu <hechushiguitu666@gmail.com> Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Signed-off-by: Niklas Cassel <cassel@kernel.org>
1 parent 7bf6ddc commit 797f629

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/ata/pata_arasan_cf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ static inline int wait4buf(struct arasan_cf_dev *acdev)
380380
if (!wait_for_completion_timeout(&acdev->cf_completion, TIMEOUT)) {
381381
u32 rw = acdev->qc->tf.flags & ATA_TFLAG_WRITE;
382382

383-
dev_err(acdev->host->dev, "%s TimeOut", rw ? "write" : "read");
383+
dev_err(acdev->host->dev, "%s TimeOut\n", rw ? "write" : "read");
384384
return -ETIMEDOUT;
385385
}
386386

@@ -474,7 +474,7 @@ static int sg_xfer(struct arasan_cf_dev *acdev, struct scatterlist *sg)
474474
dma_len = min(xfer_cnt, FIFO_SIZE);
475475
ret = dma_xfer(acdev, src, dest, dma_len);
476476
if (ret) {
477-
dev_err(acdev->host->dev, "dma failed");
477+
dev_err(acdev->host->dev, "dma failed\n");
478478
goto fail;
479479
}
480480

0 commit comments

Comments
 (0)