* [PATCH] ata: Only output sg element mapped number in verbose debug
@ 2018-07-12 16:31 Paul Menzel
2018-07-12 20:06 ` Tejun Heo
0 siblings, 1 reply; 2+ messages in thread
From: Paul Menzel @ 2018-07-12 16:31 UTC (permalink / raw)
To: Tejun Heo; +Cc: linux-ide, Linux Kernel Mailing List
[-- Attachment #1: Type: text/plain, Size: 873 bytes --]
Date: Sun, 8 Jul 2018 09:18:21 +0200
Defining `ATA_DEBUG` there are a lof of messages like below in the log.
[ 16.345472] ata_sg_setup: 1 sg elements mapped
As that is too verbose, only output these messages in verbose debug.
Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
---
drivers/ata/libata-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index cc71c63df381..7186f4a59422 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -5066,7 +5066,7 @@ static int ata_sg_setup(struct ata_queued_cmd *qc)
if (n_elem < 1)
return -1;
- DPRINTK("%d sg elements mapped\n", n_elem);
+ VPRINTK("%d sg elements mapped\n", n_elem);
qc->orig_n_elem = qc->n_elem;
qc->n_elem = n_elem;
qc->flags |= ATA_QCFLAG_DMAMAP;
--
2.17.1
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 5174 bytes --]
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ata: Only output sg element mapped number in verbose debug
2018-07-12 16:31 [PATCH] ata: Only output sg element mapped number in verbose debug Paul Menzel
@ 2018-07-12 20:06 ` Tejun Heo
0 siblings, 0 replies; 2+ messages in thread
From: Tejun Heo @ 2018-07-12 20:06 UTC (permalink / raw)
To: Paul Menzel; +Cc: linux-ide, Linux Kernel Mailing List
On Thu, Jul 12, 2018 at 06:31:03PM +0200, Paul Menzel wrote:
> Date: Sun, 8 Jul 2018 09:18:21 +0200
>
> Defining `ATA_DEBUG` there are a lof of messages like below in the log.
>
> [ 16.345472] ata_sg_setup: 1 sg elements mapped
>
> As that is too verbose, only output these messages in verbose debug.
>
> Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
Applied to libata/for-4.19. Thanks.
--
tejun
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-07-12 20:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-12 16:31 [PATCH] ata: Only output sg element mapped number in verbose debug Paul Menzel
2018-07-12 20:06 ` Tejun Heo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.