[libcamera-devel] [PATCH 0/2] libcamera: log: Small improvements

Laurent Pinchart laurent.pinchart at ideasonboard.com
Tue Apr 13 23:51:19 CEST 2021


Hello,

This small patch series is a drive-by change the improves the logging
implementation a little bit.

I was hoping that builtins could give us pretty function names, but
that's not the case, so I'm not entirely sure that 2/2 is worth it.

Laurent Pinchart (2):
  libcamera: log: De-duplicate _log() functions and LogMessage
    constructor
  libcamera: log: Use compiler builtins to retrieve file and line number

 include/libcamera/internal/log.h | 20 ++++-----
 src/libcamera/log.cpp            | 75 +++++---------------------------
 2 files changed, 20 insertions(+), 75 deletions(-)

-- 
Regards,

Laurent Pinchart



More information about the libcamera-devel mailing list