[PATCH v4 0/8] libcamera: base: log: Misc. changes
Barnabás Pőcze
pobrn at protonmail.com
Tue Feb 25 18:35:34 CET 2025
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
More information about the libcamera-devel
mailing list