From patchwork Thu Jan 30 19:58:14 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: 22709 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 1791DBD808 for ; Thu, 30 Jan 2025 19:58:24 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 2E28A68563; Thu, 30 Jan 2025 20:58:23 +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="w9p0hLOH"; dkim-atps=neutral Received: from mail-40134.protonmail.ch (mail-40134.protonmail.ch [185.70.40.134]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 776F36034C for ; Thu, 30 Jan 2025 20:58:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1738267100; x=1738526300; bh=SvAuKzT9nQ+jkKvWTq+ycYE2n2UbWeWSGSVcV/s3PTo=; 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=w9p0hLOH1DtI/2bFhCyr04LSNNhi/Pey+TDDtT1KsPqSwc7J6jxJJWED+A6PiRdV9 UbxAfk0GV6pEalERAi/WJybUvpMipHXn3L+LzbJSpG3xXr1p15rpJ7GmhfE0elqYQP C8TdGCmTfxyBcYTmAvy2BnQEPxq3JE7MDOrMXdzMQp2vdxBERM/8DZq8lnbbEZ23XG F5QpHE7JYaJquCZtrwq4LcvgMWBogYCoW2IxabLKL+jp0B/F4q2SsTGbDFZ0+htndg DyjqFYCBygHqVyBWRCCtizxMEUNvgTOjnkEC0q4YrjdFjJVkypTxVubzqkwMc108bI cC+7tIkPQ+L+Q== Date: Thu, 30 Jan 2025 19:58:14 +0000 To: libcamera-devel@lists.libcamera.org From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= Subject: [RFC PATCH v2 0/9] libcamera: base: log: Misc. changes Message-ID: <20250130195811.1230581-1-pobrn@protonmail.com> Feedback-ID: 20568564:user:proton X-Pm-Message-ID: 306c48c70ce1b0af95c89e83f4c561eedeeea85b 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 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 v1: https://patchwork.libcamera.org/project/libcamera/list/?series=4960 Barnabás Pőcze (9): 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: Split `parseLogLevel[s]()` libcamera: base: log: Protect log categories with lock libcamera: base: log: Store categories in list include/libcamera/base/log.h | 22 +-- src/libcamera/base/log.cpp | 292 +++++++++++++++-------------------- 2 files changed, 133 insertions(+), 181 deletions(-) --- 2.48.1