]> 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)
commit6c4cd4a209f3d6668f15d7f5b810cbf24f4867d5
treed35b9747cbc1fa0fbad587d706cad79bc7e5f300
parent1b2eb37f5532bc6d41e539c6135eb5ffa29d626f
[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