From patchwork Thu Oct 7 09:39:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 14071 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 2DF3CBDC71 for ; Thu, 7 Oct 2021 09:39:51 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 01D3C691B7; Thu, 7 Oct 2021 11:39:51 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="g0rdof1h"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id E9B3F691B6 for ; Thu, 7 Oct 2021 11:39:48 +0200 (CEST) Received: from perceval.ideasonboard.com (unknown [103.251.226.190]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id AF24EDDE; Thu, 7 Oct 2021 11:39:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1633599588; bh=jFI4DLDO42yMfKkd9C3PyiArQ49OgE+aLAraLcK67nM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g0rdof1hX7Btq9rDUR/s6t3ALfk0PneYQWb0UsODJToG5Eoie1xAUtGIYQfNGAlOp as+FZ59bBeOwVOFcwBKvvO8Ld/xyuAbFh+eboDwZcvOSBWmb/+AAB4gQgYNi3I8GKP aIOPa0Fa06iS8nY8g1BppQPOxIeyXAmXS4A2fRC4= From: Umang Jain To: libcamera-devel@lists.libcamera.org Date: Thu, 7 Oct 2021 15:09:37 +0530 Message-Id: <20211007093937.121357-2-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211007093937.121357-1-umang.jain@ideasonboard.com> References: <20211007093937.121357-1-umang.jain@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 2/2] android: camera_stream: Fix error message for buffer creation 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" From: Laurent Pinchart Creating a CameraBuffer instance doesn't map memory. Fix the error message accordingly. Signed-off-by: Laurent Pinchart Reviewed-by: Umang Jain Signed-off-by: Umang Jain Reviewed-by: Hirokazu Honda Reviewed-by: Jacopo Mondi --- src/android/camera_stream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/android/camera_stream.cpp b/src/android/camera_stream.cpp index db8d854b..3b96d2e9 100644 --- a/src/android/camera_stream.cpp +++ b/src/android/camera_stream.cpp @@ -171,7 +171,7 @@ int CameraStream::process(const FrameBuffer &source, CameraBuffer dest(*camera3Dest.buffer, output.pixelFormat, output.size, PROT_READ | PROT_WRITE); if (!dest.isValid()) { - LOG(HAL, Error) << "Failed to map android blob buffer"; + LOG(HAL, Error) << "Failed to create destination buffer"; return -EINVAL; }