From patchwork Tue Feb 25 17:35:34 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= X-Patchwork-Id: 22870 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 6126FBF415 for ; Tue, 25 Feb 2025 17:35:41 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 833C568723; Tue, 25 Feb 2025 18:35:40 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=protonmail.com header.i=@protonmail.com header.b="moouRBnV"; dkim-atps=neutral Received: from mail-4316.protonmail.ch (mail-4316.protonmail.ch [185.70.43.16]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 8BFB9686D6 for ; Tue, 25 Feb 2025 18:35:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1740504939; x=1740764139; bh=jOpIDyyY/Zz6zK53gMf8IwyoAXvOkZ98ntCKOdrQpgw=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector: List-Unsubscribe:List-Unsubscribe-Post; b=moouRBnVubprbce18IwhtlY8QmRkqD0Rrz2nMkbYW6W3T9QHzwbvCh6pQeViKpAuM awMf5EBMsb6+vzyH1ktlLnn3t+oHMR/tTicTba3H/+j6knijjOPfj+QgcnMDph9SkV OxXSsajGe629CZHbkI6HJ3busWk4w9ghTKiSFH7luQ1OHMWfkjX99K59IRav6O+Al3 szeZJ7cl17Zs6LU4ejNP597K1HLn+15kaUh04AWR7uwjAGzNLoM8pJrLDpM3D8Vkzn V2oFlWbJVAzWAPONRUEzjg7liyJRXl6brN7rPYtetCkFGmCbi1wue4n4iI1ALdyVN5 lXHkt5Qy10d8g== Date: Tue, 25 Feb 2025 17:35:34 +0000 To: libcamera-devel@lists.libcamera.org From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= Subject: [PATCH v4 0/8] libcamera: base: log: Misc. changes Message-ID: <20250225173531.2595922-1-pobrn@protonmail.com> Feedback-ID: 20568564:user:proton X-Pm-Message-ID: 3acc45f0cc2746d47f456684135fdfc0ffb30de0 MIME-Version: 1.0 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" A collection of misc. changes I made while I was looking at https://bugs.libcamera.org/show_bug.cgi?id=243 . Changes in v4: * rebase on master branch * use camel case Changes in v3: * drop https://patchwork.libcamera.org/patch/22716/ * store `LogCategory`s in `std::vector` of `std::unique_ptr` * rewrite commit message of https://patchwork.libcamera.org/patch/22717/ Changes in v2: * remove `LogMessage` move constructor * split function moving into separate patch * do not pass the default value of 10 to `std::from_chars()` * store `LogCategory`s in `std::list` instead of vector of owning raw pointers v3: https://patchwork.libcamera.org/project/libcamera/list/?series=5007 v2: https://patchwork.libcamera.org/project/libcamera/list/?series=4982 v1: https://patchwork.libcamera.org/project/libcamera/list/?series=4960 Barnabás Pőcze (8): libcamera: base: log: Remove move constructor libcamera: base: log: Use `std::from_chars()` libcamera: base: log: Remove `LogMessage::init()` libcamera: base: log: Make `LogCategory::severity_` atomic libcamera: base: log: Use `std::string_view` to avoid some copies libcamera: base: log: Pass dynamic prefix through libcamera: base: log: Protect log categories with lock libcamera: base: log: Avoid manual `LogCategory` deletion include/libcamera/base/log.h | 23 +++--- src/libcamera/base/log.cpp | 134 +++++++++++------------------------ 2 files changed, 55 insertions(+), 102 deletions(-) --- 2.48.1