]> git.baikalelectronics.ru Git - kernel.git/commit
[media] dvb-bt8xx: convert printks to pr_err()
authorJonathan Nieder <jrnieder@gmail.com>
Fri, 6 Jan 2012 17:26:41 +0000 (14:26 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 7 Jan 2012 13:53:35 +0000 (11:53 -0200)
commit96f5717602358e2ba4523ce9a7c88561f2453036
treebd7655c02e0b845021cdf728f1f4c76f07569e96
parent6c803599c5dd0ea4aceff757e8beb88f28149c12
[media] dvb-bt8xx: convert printks to pr_err()

This module does some printks with the loglevel missing.

pr_err() takes care of adding the KERN_ERR tag and the module name.
So we can simplify the code and add the missing printk loglevel by
using it.

Also add a #define pr_fmt() to make this work, and remove a few
unnecessary periods at the end of messages and bump the loglevel of
"Unknown bttv card type" from KERN_WARNING to KERN_ERR while at it.

Inspired-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/bt8xx/dvb-bt8xx.c