From patchwork Fri Aug 26 11:39:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 17203 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 11941C0DA4 for ; Fri, 26 Aug 2022 11:39:45 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 6F2A861FC3; Fri, 26 Aug 2022 13:39:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1661513984; bh=pTIup3qdgayIeZBU9uYIqHffjQTT8jxAvBjtlzPxPNM=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=KUjFh00aCvsx13O6dNiaDynfGiRpml/h0lT57WYX+rNYi9L9L81u8IId68cV7hRW2 o2KsNC/J0XcHzMeS5IL3ihhjDZ91wYbj8V5KMyoNvdF8NGZxt4av5KIgkqYqIcBY6L 7kYjqdQi/0nacTEXRUZOpyEnyrVzGYdMFtQcfAM41XtF/RmK313EB0js/7a309bfC0 iZVFzMh+9fdOXKVkJQR6IYYctEimgeZJNEHBW36fv7x+v4curCasZkr3CO31r/Lhvu FcifMk+QvDQR8G2Gnrs6peGr7ZpSTIMD1YTtPiQw9f1sJ9Mxal9OkR7IW7msF0x88b OwuO3RAXbeQow== 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 F33D661FA2 for ; Fri, 26 Aug 2022 13:39:42 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="txX/BjWw"; dkim-atps=neutral Received: from deskari.lan (91-158-154-79.elisa-laajakaista.fi [91.158.154.79]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5367D2B3; Fri, 26 Aug 2022 13:39:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1661513982; bh=pTIup3qdgayIeZBU9uYIqHffjQTT8jxAvBjtlzPxPNM=; h=From:To:Cc:Subject:Date:From; b=txX/BjWwEnwEEG5nU8jSZubXxVDmGlHj5Gw8LAUTh7J0uQn3mCm7jaOES79Y5eQRX PoZ8++noxHyLkZiP9wMSKlWsopFyeTIIQUukem/KljqDXi1VKtseiBQ+zpeYhyl4S5 5fRsvCrz3WLLXaiHIgu8/6rsBNvka3smF8roQ0eY= To: libcamera-devel Date: Fri, 26 Aug 2022 14:39:29 +0300 Message-Id: <20220826113931.59323-1-tomi.valkeinen@ideasonboard.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/2] LogCategory fixing 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: , X-Patchwork-Original-From: Tomi Valkeinen via libcamera-devel From: Tomi Valkeinen Reply-To: Tomi Valkeinen Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hi, I hit these log issues with python unittests, which create and destruct CameraManagers multiple times. Apparently this is not a common thing to do... Apparently the logging system has not been created with unloadable plugin libraries in mind. Tomi Tomi Valkeinen (2): libcamera: base: log: Fix use of freed name libcamera: base: log: Fix LogCategory creation issues include/libcamera/base/log.h | 10 ++++--- src/libcamera/base/log.cpp | 53 ++++++++++++++++++++++++++++++------ 2 files changed, 51 insertions(+), 12 deletions(-)