From patchwork Fri Jan 22 10:22:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Plowman X-Patchwork-Id: 10956 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 8697EBD808 for ; Fri, 22 Jan 2021 10:22:31 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 538D46824C; Fri, 22 Jan 2021 11:22:31 +0100 (CET) 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="foj0cTBF"; dkim-atps=neutral Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id A9E896824C for ; Fri, 22 Jan 2021 11:22:28 +0100 (CET) Received: by mail-wr1-x431.google.com with SMTP id q7so4523257wre.13 for ; Fri, 22 Jan 2021 02:22:28 -0800 (PST) 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=lzoNnOT+b8DgxM8JeMLr4xrkmbTMR3H8ANBYbi4GV84=; b=foj0cTBF+94MuM+BPTlZOnRUS6+z4Cuu7CiuI+DqHrRzsALWrT1HIz9OuMYNe8mF+I almXaLkuE3BTvsO8EAOF/s4r1MzvG9Ac9kAYjRFbCvmZTzUmSR7ftA6vPoGDf2I4z16v PfX9E2vckGn/atN/NMXmln2q9MYaRpCU5xBwQbHEJO3993mut3Ds/9EUgykTa/Bhs8vI B+EldkgSPDP+e6ACG7hmr6bcduYC4kY3lMmG9BLbKndgr6MMcq6+Xe0xL9QoVR8GRcEn QCp7FL7oiUFgtrD7osTYKpbSpAwBU98hQer/UZY6psEk/pWMTHAYUkuHNDvJhg8MRQiA mG2w== 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=lzoNnOT+b8DgxM8JeMLr4xrkmbTMR3H8ANBYbi4GV84=; b=W0YyOUSaGHKywhZff9G1HF31MxJEK8AWwseS7TSG+ZmCqOUTPSolSr7QNAgF2OUFUk +mnaibzLGfzW/2Q18JVRiNnxrRFS6sKe9Vd1bwXC1nBFUWa167JFj9Ig7To+FSamFjh3 vK9UjKOTTRulr3IxplfI1G64mM2Dr96iJdeCc72s33+/KvyG9g7jYy3RLcbpFSnqW3ne dwAUHd+nBm9Mt/2A0ZvNFZy3HwRifUKx79PDl+hCZYduG9jvTG46+BtB9PmZ2QM2bTz4 pnVrD3TKd5gi6xQGFSmSKXxJMsa7uKxgyD6YZpEH1OEZ9FdjVMlj81LP6VJUpJRkxxEb dHQQ== X-Gm-Message-State: AOAM530BzZDNYIpfvBkchyaz+UicMgcyqaRDsec0r6nTJ+ZO7UClcHmJ MWzn8qLQZMZkKui6twd2D4To8xkYW/JtZwMQ X-Google-Smtp-Source: ABdhPJxIDci1P6ADmdRHdDLDlO6/MFdokR6UNy6d5Kl68N97fkj4UIgVowRoGVlwIt7I49iFDzpgAA== X-Received: by 2002:a5d:4d86:: with SMTP id b6mr3779501wru.152.1611310948190; Fri, 22 Jan 2021 02:22:28 -0800 (PST) Received: from pi4-davidp.lan (plowpeople3.plus.com. [80.229.223.72]) by smtp.gmail.com with ESMTPSA id p15sm11469221wrt.15.2021.01.22.02.22.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jan 2021 02:22:27 -0800 (PST) From: David Plowman To: libcamera-devel@lists.libcamera.org Date: Fri, 22 Jan 2021 10:22:11 +0000 Message-Id: <20210122102211.12768-6-david.plowman@raspberrypi.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210122102211.12768-1-david.plowman@raspberrypi.com> References: <20210122102211.12768-1-david.plowman@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 5/5] ipa: raspberrypi: Remove legacy Rasberry Pi logging 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" Signed-off-by: David Plowman Reviewed-by: Laurent Pinchart --- src/ipa/raspberrypi/controller/algorithm.hpp | 1 - src/ipa/raspberrypi/controller/logging.hpp | 30 -------------------- 2 files changed, 31 deletions(-) delete mode 100644 src/ipa/raspberrypi/controller/logging.hpp diff --git a/src/ipa/raspberrypi/controller/algorithm.hpp b/src/ipa/raspberrypi/controller/algorithm.hpp index 17423f23..e9b040c7 100644 --- a/src/ipa/raspberrypi/controller/algorithm.hpp +++ b/src/ipa/raspberrypi/controller/algorithm.hpp @@ -14,7 +14,6 @@ #include #include -#include "logging.hpp" #include "controller.hpp" #include diff --git a/src/ipa/raspberrypi/controller/logging.hpp b/src/ipa/raspberrypi/controller/logging.hpp deleted file mode 100644 index f0d306b6..00000000 --- a/src/ipa/raspberrypi/controller/logging.hpp +++ /dev/null @@ -1,30 +0,0 @@ -/* SPDX-License-Identifier: BSD-2-Clause */ -/* - * Copyright (C) 2019-2020, Raspberry Pi (Trading) Limited - * - * logging.hpp - logging macros - */ -#pragma once - -#include - -#ifndef RPI_LOGGING_ENABLE -#define RPI_LOGGING_ENABLE 0 -#endif - -#ifndef RPI_WARNING_ENABLE -#define RPI_WARNING_ENABLE 1 -#endif - -#define RPI_LOG(stuff) \ - do { \ - if (RPI_LOGGING_ENABLE) \ - std::cout << __FUNCTION__ << ": " << stuff << "\n"; \ - } while (0) - -#define RPI_WARN(stuff) \ - do { \ - if (RPI_WARNING_ENABLE) \ - std::cout << __FUNCTION__ << " ***WARNING*** " \ - << stuff << "\n"; \ - } while (0)