From patchwork Fri Jul 24 11:29:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naushir Patuck X-Patchwork-Id: 8963 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id BCF3DBD878 for ; Fri, 24 Jul 2020 11:29:56 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 3C81E611AA; Fri, 24 Jul 2020 13:29:56 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="PJWmXx/1"; dkim-atps=neutral Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 997206039B for ; Fri, 24 Jul 2020 13:29:54 +0200 (CEST) Received: by mail-wr1-x441.google.com with SMTP id z18so4426795wrm.12 for ; Fri, 24 Jul 2020 04:29:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JZ98mCYIUxxywBuqfgnRj2F0kTZVCXXRhNghWQ6qjMQ=; b=PJWmXx/181j6+YLjRF4p7qz+qsaosHQytAyqKR3je/y7arGJ+LzUNpyG85pVGZJf+e iboHLa6U0lhmVwXzZCuG0GnX6EciVRXOm/gSK8xZ/rOrrN+ePo+9fiB98EnKyhK7y+3g m7xVJ+OKa2aDhU5MkG8f4BW+/vW/QYJ5uCGnuc5FX0b5QeGfsmMNVVxXYRLRvRTJLN79 9dtbHwIGiSlxZdvPY23YJ+OBdgyYXzbViHRHRU0T+0U0bT+eZ0luzJSHKTpWWykzL0AA WUIardc7nM12CKyqe1X9QyJR2lDlB8cVdpVfW0W4hcBo4zM+svC8CzgfPHsOQk0sYpcg pPsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=JZ98mCYIUxxywBuqfgnRj2F0kTZVCXXRhNghWQ6qjMQ=; b=DDCZikNGPi6biuW/+tpiSQv2ccxTTFfwpX1ZaCjgOf99bOtQfhIwB2awf6fdzm6qu0 w3XUGnvSRViW/rimyJkNj8VokZSWvmE9fqnlmQEr0Cfduvx9/dOAqanZDKFBvKOCfSeR lxMP6YGJrNzJs2U37idxA7S8ZvfcG0L5B/4hCM0ru8laTMpu2bxZPZrZ8iTYPGnjT6L8 vGWab6B+XBkW6RxvA+mTsPK0h3H8Mq6WvuBfE0cnO25Jot0AzPrrOsxALTUAnyYaHfPn Hbk496N3JkBgXGqYQJN1OkEuCiNcEjUoifODohMyqAXdrG6P65TFXoPNsggllv/wUMkM uhjA== X-Gm-Message-State: AOAM533Rb+loSA6WDWwzE9sMSDYBBdP/QcF6+EpVO84gKGF06YI9GVD/ UraJGvfH1oKSVasygxZ8Ajym9hrHFahYmQ== X-Google-Smtp-Source: ABdhPJyaHiwXN9sPRDaQJE3vcWXZk1n1nUunpseKE68m1PRlYioI7LWVEr0iqMp7eua7BO1UTcL2lA== X-Received: by 2002:adf:c986:: with SMTP id f6mr8360109wrh.168.1595590193967; Fri, 24 Jul 2020 04:29:53 -0700 (PDT) Received: from naushir-VirtualBox.patuck.local ([88.97.76.4]) by smtp.gmail.com with ESMTPSA id o7sm952956wrv.50.2020.07.24.04.29.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jul 2020 04:29:53 -0700 (PDT) From: Naushir Patuck To: libcamera-devel@lists.libcamera.org Date: Fri, 24 Jul 2020 12:29:50 +0100 Message-Id: <20200724112950.957955-1-naush@raspberrypi.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200724072218.943245-4-naush@raspberrypi.com> References: <20200724072218.943245-4-naush@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] libcamera: request: Add log point on a completed request X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Add a debug log point to indicate a request has completed. Signed-off-by: Naushir Patuck Reviewed-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- src/libcamera/request.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libcamera/request.cpp b/src/libcamera/request.cpp index 6b9e0b4a..bcb0a1a7 100644 --- a/src/libcamera/request.cpp +++ b/src/libcamera/request.cpp @@ -212,6 +212,10 @@ void Request::complete() { ASSERT(!hasPendingBuffers()); status_ = cancelled_ ? RequestCancelled : RequestComplete; + + LOG(Request, Debug) << "Request has completed - cookie: " + << cookie_ + << (cancelled_ ? " [Cancelled]" : ""); } /**