From patchwork Mon Nov 12 08:01:29 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 12806 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id AE25D23E28 for ; Mon, 12 Nov 2012 08:07:18 +0000 (UTC) Received: from mail-ia0-f180.google.com (mail-ia0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 5263DA19384 for ; Mon, 12 Nov 2012 08:07:18 +0000 (UTC) Received: by mail-ia0-f180.google.com with SMTP id f6so4088171iag.11 for ; Mon, 12 Nov 2012 00:07:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=Ef+fBnHSZD2DpLOIs9ETcVOQ2gzS4bnrznaNte0nyUk=; b=SdV+AfRuJolRpyE5OTbnb1uuAII5egK3yc0PJYvCF/inMkD4c2QjFrw1I7op7zimWn rbBoXeuEb18kcDYyVaOSyxcfYd0gNYt+BBCAotGFNehFNbSHirj4XkeXghWs/4zYcHfR Z0GTAJYQpb+4eZT7GmMNdDzz/gnTAW2WBadK2SilSYUrrwbpea2/6Q6Qb1ub5i7jLCxa LezaOWmjHpq3FAatNpErDBDOFSvOSry4pZmGYdTbBMKkvGGbW67tisFl9gJtbRCoUUDV JBZIhRBvaxWh3NjFteZxtdr0VEJDQe2gxcOgZdqX8epYNXGmZNhQFu5ztU6iECwJ5TRo VlGA== Received: by 10.50.173.34 with SMTP id bh2mr7126487igc.70.1352707637704; Mon, 12 Nov 2012 00:07:17 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp326461igt; Mon, 12 Nov 2012 00:07:17 -0800 (PST) Received: by 10.66.87.132 with SMTP id ay4mr52612716pab.67.1352707636834; Mon, 12 Nov 2012 00:07:16 -0800 (PST) Received: from mail-pb0-f44.google.com (mail-pb0-f44.google.com [209.85.160.44]) by mx.google.com with ESMTPS id xo9si8562207pbc.73.2012.11.12.00.07.16 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 12 Nov 2012 00:07:16 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.44 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.160.44; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.44 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) smtp.mail=tushar.behera@linaro.org Received: by mail-pb0-f44.google.com with SMTP id uo1so913494pbc.17 for ; Mon, 12 Nov 2012 00:07:16 -0800 (PST) Received: by 10.68.227.162 with SMTP id sb2mr56602572pbc.4.1352707636526; Mon, 12 Nov 2012 00:07:16 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id d2sm3926994paw.19.2012.11.12.00.07.13 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 12 Nov 2012 00:07:15 -0800 (PST) From: Tushar Behera To: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Cc: mchehab@redhat.com, patches@linaro.org Subject: [PATCH] [media] videobuf2-core: print current state of buffer in vb2_buffer_done Date: Mon, 12 Nov 2012 13:31:29 +0530 Message-Id: <1352707289-9349-1-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQmO3U28rOod0ZTs5FNHHWdM1nzeUjxlRihFFxQ06WYzf0+2i3A+R7UEdUqJQ9izOFfEUNIh In vb2_buffer_done, it would be better the print the value of 'state' (current state of buffer) than to print 'vb->state' which is always VB2_BUF_STATE_ACTIVE. Signed-off-by: Tushar Behera --- drivers/media/v4l2-core/videobuf2-core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/v4l2-core/videobuf2-core.c b/drivers/media/v4l2-core/videobuf2-core.c index 432df11..91980d13 100644 --- a/drivers/media/v4l2-core/videobuf2-core.c +++ b/drivers/media/v4l2-core/videobuf2-core.c @@ -798,7 +798,7 @@ void vb2_buffer_done(struct vb2_buffer *vb, enum vb2_buffer_state state) return; dprintk(4, "Done processing on buffer %d, state: %d\n", - vb->v4l2_buf.index, vb->state); + vb->v4l2_buf.index, state); /* Add the buffer to the done buffers list */ spin_lock_irqsave(&q->done_lock, flags);