]> www.infradead.org Git - users/hch/block.git/commitdiff
media: serial_ir: change "ignoring spike" to debug level
authorBodo Eggert <7eggert@gmx.de>
Thu, 26 Dec 2019 21:28:45 +0000 (22:28 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 3 Jan 2020 15:29:33 +0000 (16:29 +0100)
At least on my system with a self-made IR receiver, my kernel log is filled
with:

serial_ir serial_ir.0: ignoring spike: 1 1 1419988034627194ns 1419956080709377ns

These messages happen at random and do not prevent the receiver from
working. Also I cannot change the features of the IC, therefore they are not
useful. Probably they are not useful at all.

However they fill the console, they accumulate and fill the dmesg log, by
doing this, they prevent me from seeing important message.

Signed-off-by: Bodo Eggert <7eggert@gmx.de>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/rc/serial_ir.c

index 7652e982173f067f002bfa7ffdbdbaa0114fff64..d77507ba0fb58293bd409410bdf76e6808f6c1c8 100644 (file)
@@ -353,7 +353,7 @@ static irqreturn_t serial_ir_irq_handler(int i, void *blah)
                        dcd = (status & hardware[type].signal_pin) ? 1 : 0;
 
                        if (dcd == last_dcd) {
-                               dev_err(&serial_ir.pdev->dev,
+                               dev_dbg(&serial_ir.pdev->dev,
                                        "ignoring spike: %d %d %lldns %lldns\n",
                                        dcd, sense, ktime_to_ns(kt),
                                        ktime_to_ns(serial_ir.lastkt));