From patchwork Tue Jan 21 18:50:47 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: 22601 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 DB731BD16B for ; Tue, 21 Jan 2025 18:50:56 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 3483C68503; Tue, 21 Jan 2025 19:50:56 +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="l2xVZQKy"; dkim-atps=neutral Received: from mail-40131.protonmail.ch (mail-40131.protonmail.ch [185.70.40.131]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 5637360380 for ; Tue, 21 Jan 2025 19:50:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1737485453; x=1737744653; bh=SKXoHQqQIrzyvtoZwbRoYvWr3QXGmTJFdX/r7i9IeH8=; 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=l2xVZQKyLAhExoBYRPGDxYi/ilq21D9wSRkZh4Alvzy96oRjvhsb3Nd4FpmQb4egT VONUmrBMf8e5s5mWt/yfMKTsgtp7lbEB7Tf8wih488FpZhs4AVI0CHgMxhFSTrKU3h RMNQOmEr/Arx2MmRy5z05joYx3+qSHZMGGZC4fzfAvFfkHhvT0Uw3bcd2eQseS48I2 BHxWN9nXOFQ/VLwCYTKmvqN1N/QGlceDnxDvIRXPez0tWtg8ertEaOKoQ483VvyMRw jzJNsOOuDFy5w95bGkp9Xo5CWfD+YW8dw2wydd8mi0hO8oFJvoPChNhBCVWiPXY/a8 Vec6C+ZGe/cAA== Date: Tue, 21 Jan 2025 18:50:47 +0000 To: libcamera-devel@lists.libcamera.org From: =?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= Subject: [RFC PATCH v1 0/7] libcamera: base: log: Misc. changes Message-ID: <20250121185044.300816-1-pobrn@protonmail.com> Feedback-ID: 20568564:user:proton X-Pm-Message-ID: d6bd66bd464c891b2045ccb18f725721277596b0 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 . Barnabás Pőcze (7): libcamera: base: log: Move all fields of `LogMessage` 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 include/libcamera/base/log.h | 18 +-- src/libcamera/base/log.cpp | 272 ++++++++++++++++------------------- 2 files changed, 134 insertions(+), 156 deletions(-) --- 2.48.1