From patchwork Sat May 21 05:55:49 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Ringel X-Patchwork-Id: 805282 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p4L5v2ic010970 for ; Sat, 21 May 2011 05:57:02 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751694Ab1EUFzz (ORCPT ); Sat, 21 May 2011 01:55:55 -0400 Received: from mail-in-06.arcor-online.net ([151.189.21.46]:50588 "EHLO mail-in-06.arcor-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751520Ab1EUFzy (ORCPT ); Sat, 21 May 2011 01:55:54 -0400 Received: from mail-in-02-z2.arcor-online.net (mail-in-02-z2.arcor-online.net [151.189.8.14]) by mx.arcor.de (Postfix) with ESMTP id 3725410C69E; Sat, 21 May 2011 07:55:52 +0200 (CEST) Received: from mail-in-01.arcor-online.net (mail-in-01.arcor-online.net [151.189.21.41]) by mail-in-02-z2.arcor-online.net (Postfix) with ESMTP id 33AAD1754C0; Sat, 21 May 2011 07:55:52 +0200 (CEST) Received: from localhost.localdomain (dslb-188-106-191-188.pools.arcor-ip.net [188.106.191.188]) (Authenticated sender: stefan.ringel@arcor.de) by mail-in-01.arcor-online.net (Postfix) with ESMTPA id DB9145A384; Sat, 21 May 2011 07:55:51 +0200 (CEST) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-01.arcor-online.net DB9145A384 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arcor.de; s=mail-in; t=1305957352; bh=ijMM8M4q3JXdR69tbF9DdvW+WqRuAXLfuySHPn80Rq4=; h=From:To:Cc:Subject:Date:Message-Id; b=SH3lZe3pn6w4l5evwKsVPK5Q/ZwoZ/ii91bosnlsUUrgh4vlqD+QU1uSCIpODAKTS kf7lKwRMajcg6f7EGwtkmJaYNH1wRbqhXASrm+MwRgkfZ/hw39pFJX3xKR0bmguBcg tKuJJVuSGpcE7oiV8GfRjkGQUHwOUzcO9pSHBiRU= From: stefan.ringel@arcor.de To: linux-media@vger.kernel.org Cc: d.belimov@gmail.com, mchehab@redhat.com, Stefan Ringel Subject: [PATCH] tm6000: fix uninitialized field, change prink to dprintk Date: Sat, 21 May 2011 07:55:49 +0200 Message-Id: <1305957349-5388-1-git-send-email-stefan.ringel@arcor.de> X-Mailer: git-send-email 1.7.4.2 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sat, 21 May 2011 05:57:03 +0000 (UTC) From: Stefan Ringel fix uninitialized field, change prink to dprintk Signed-off-by: Stefan Ringel --- drivers/staging/tm6000/tm6000-video.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) 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; } }