[v1,0/3] libcamera: base: log: Do not instantiate disabled `LogMessage`s
mbox series

Message ID 20250303154844.745574-1-barnabas.pocze@ideasonboard.com
Headers show
Series
  • libcamera: base: log: Do not instantiate disabled `LogMessage`s
Related show

Message

Barnabás Pőcze March 3, 2025, 3:48 p.m. UTC
*** BLURB HERE ***

Barnabás Pőcze (3):
  libcamera: base: log: Take `LogCategory` by reference
  treewide: Remove `libcamera::LOG(...)` occurences
  libcamera: base: log: Do not instantiate disabled `LogMessage`s

 include/libcamera/base/log.h               | 13 +++++++++----
 src/libcamera/base/log.cpp                 |  8 ++++----
 src/libcamera/sensor/camera_sensor_raw.cpp |  8 +++++---
 src/libcamera/v4l2_device.cpp              | 10 ++++++----
 4 files changed, 24 insertions(+), 15 deletions(-)

--
2.48.1

Comments

Barnabás Pőcze March 3, 2025, 5:19 p.m. UTC | #1
2025. 03. 03. 16:48 keltezéssel, Barnabás Pőcze írta:
> *** BLURB HERE ***

Of course I forgot to save it...

The main goal of this series is to avoid the construction of `LogMessage`s
that in the end will not be printed and just discarded.

> 
> Barnabás Pőcze (3):
>    libcamera: base: log: Take `LogCategory` by reference
>    treewide: Remove `libcamera::LOG(...)` occurences
>    libcamera: base: log: Do not instantiate disabled `LogMessage`s
> 
>   include/libcamera/base/log.h               | 13 +++++++++----
>   src/libcamera/base/log.cpp                 |  8 ++++----
>   src/libcamera/sensor/camera_sensor_raw.cpp |  8 +++++---
>   src/libcamera/v4l2_device.cpp              | 10 ++++++----
>   4 files changed, 24 insertions(+), 15 deletions(-)
> 
> --
> 2.48.1