summaryrefslogtreecommitdiffstats
path: root/drivers/staging/cx25821/cx25821-medusa-video.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-11-07 17:48:21 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-12-29 08:16:46 -0200
commit36d89f7de4a4937848de86d9b35cb03a9f0357e1 (patch)
tree38d40406de7fe081febb1f6394f308a6037c0c67 /drivers/staging/cx25821/cx25821-medusa-video.c
parent13d28e4917fb6cf6898e8998f01ab83b3f468aeb (diff)
downloadop-kernel-dev-36d89f7de4a4937848de86d9b35cb03a9f0357e1.zip
op-kernel-dev-36d89f7de4a4937848de86d9b35cb03a9f0357e1.tar.gz
[media] drivers/staging/cx25821: Use pr_fmt and pr_<level>
Fix several defects with bad line continuation uses that introduce whitespace. Fix several defects with lines missing "\n". Standardize prefixes via pr_fmt. Remove internal cx25821 prefixes. Standardize :%s():" ... __func__ uses. Coalesce long formats. Add KERN_<level> prefixes via pr_<level> to printks. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/staging/cx25821/cx25821-medusa-video.c')
-rw-r--r--drivers/staging/cx25821/cx25821-medusa-video.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/staging/cx25821/cx25821-medusa-video.c b/drivers/staging/cx25821/cx25821-medusa-video.c
index 1e11e0c..fc780d0 100644
--- a/drivers/staging/cx25821/cx25821-medusa-video.c
+++ b/drivers/staging/cx25821/cx25821-medusa-video.c
@@ -20,6 +20,8 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
#include "cx25821.h"
#include "cx25821-medusa-video.h"
#include "cx25821-biffuncs.h"
@@ -499,9 +501,8 @@ void medusa_set_resolution(struct cx25821_dev *dev, int width,
/* validate the width - cannot be negative */
if (width > MAX_WIDTH) {
- printk
- ("cx25821 %s() : width %d > MAX_WIDTH %d ! resetting to MAX_WIDTH\n",
- __func__, width, MAX_WIDTH);
+ pr_info("%s(): width %d > MAX_WIDTH %d ! resetting to MAX_WIDTH\n",
+ __func__, width, MAX_WIDTH);
width = MAX_WIDTH;
}
OpenPOWER on IntegriCloud