]> git.baikalelectronics.ru Git - kernel.git/commit
[media] saa7134: better handle core debug messages
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 30 Apr 2015 11:03:30 +0000 (08:03 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 13 May 2015 13:08:52 +0000 (10:08 -0300)
commit5cd827302b6237bff2124f574a751030af6f40f9
treed35b9747cbc1fa0fbad587d706cad79bc7e5f300
parentc71d037837413d7be22330a4d8c62f59eae4e136
[media] saa7134: better handle core debug messages

On media drivers, debugging messages should be grouped into
categories, as this makes easier to debug the driver.

In the case of saa7134, the core has 2 debug categories, one
for IRQ, and another one for the core itself. The IRQ have
actually 2 levels of debug.

So, instead of using pr_dbg(), where everything would be in
the same box, let's define two macros that use pr_fmt(),
one for the core, and another one for irq.

With that, we can replace the remaining printk() occurrences
at the core to use either core_dbg() or irq_dbg(), depending
on the group of debug macros that need to be enabled.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/pci/saa7134/saa7134-core.c