From patchwork Mon Feb 17 18:54:35 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: 22800 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 E5248C3200 for ; Mon, 17 Feb 2025 18:54:42 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id A10B468682; Mon, 17 Feb 2025 19:54:42 +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="VkemSN8U"; dkim-atps=neutral Received: from mail-10628.protonmail.ch (mail-10628.protonmail.ch [79.135.106.28]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id E058168677 for ; Mon, 17 Feb 2025 19:54:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1739818480; x=1740077680; bh=QHnmpaZd3Btz1mt7Fc1+pVDK67M68HJcnJgloNr6B3M=; 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=VkemSN8UCq0J+oHhtuqIemMOxEWTctgkgJ+zq6nD+xWB6OutI7Hchns5kOVGRSwXm nyoC417LLKXj2yWO8UBAF0C5iPjSRHOpAATRjAU5ektI/tSKkB2TDPJsTLzL4egbv5 LCKnPhHd65TDFgGmI6fC4xGG2LhDx066PWwx67KVEOCGyAAhRuMvX0gdR4og4k2F7B 9zwo8G65jWZ+4k2RHpcLFCyl6xUZgWPmOIe9jVb34/juuyBYySzMWnjBQckCubrYso HzV4SZIyCTvqhk8tjxV0GyMKjjmMCfz77Sm6D8595DzUb2jydVBmTjHjxgsCjR+Idh NqX5yIy6ewODw== Date: Mon, 17 Feb 2025 18:54:35 +0000 To: libcamera-devel@lists.libcamera.org From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= Subject: [PATCH v3 0/8] libcamera: base: log: Misc. changes Message-ID: <20250217185433.306833-1-pobrn@protonmail.com> Feedback-ID: 20568564:user:proton X-Pm-Message-ID: 755df7dfe5254d7a85eb5e768d91f362d6730dfc 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 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 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