diff mbox

tm6000: fix uninitialized field, change prink to dprintk

Message ID 1305957349-5388-1-git-send-email-stefan.ringel@arcor.de (mailing list archive)
State Superseded
Headers show

Commit Message

Stefan Ringel May 21, 2011, 5:55 a.m. UTC
From: Stefan Ringel <stefan.ringel@arcor.de>

fix uninitialized field, change prink to dprintk


Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de>
---
 drivers/staging/tm6000/tm6000-video.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/drivers/staging/tm6000/tm6000-video.c b/drivers/staging/tm6000/tm6000-video.c
index 4802396..3baee84 100644
--- a/drivers/staging/tm6000/tm6000-video.c
+++ b/drivers/staging/tm6000/tm6000-video.c
@@ -228,7 +228,7 @@  static int copy_streams(u8 *data, unsigned long len,
 	u8 *ptr = data, *endp = data+len, c;
 	unsigned long header = 0;
 	int rc = 0;
-	unsigned int cmd, cpysize, pktsize, size, field, block, line, pos = 0;
+	unsigned int cmd, cpysize, pktsize, size, field = 0, block, line, pos = 0;
 	struct tm6000_buffer *vbuf = NULL;
 	char *voutp = NULL;
 	unsigned int linewidth;
@@ -359,7 +359,8 @@  static int copy_streams(u8 *data, unsigned long len,
 				/* Need some code to copy pts */
 				u32 pts;
 				pts = *(u32 *)ptr;
-				printk(KERN_INFO "%s: field %d, PTS %x", dev->name, field, pts);
+				dprintk(dev, V4L2_DEBUG_ISOC, "field %d, PTS %x",
+					field, pts);
 				break;
 			}
 			}