libcamera/test
Stefan Klug 0dfb052fbd libcamera: base: Fix log level parsing when multiple categories are
listed

For a list of log levels like LIBCAMERA_LOG_LEVELS="CatA:0,CatB:1" only
the severity of the last entry is correctly parsed.

Due to the change of level to a string_view in 24c2caa1c1 ("libcamera:
base: log: Use `std::string_view` to avoid some copies") the level is no
longer necessarily null terminated as it is a view on the original data.

Replace the check for a terminating null by a check for the end position
to fix the issue.

Fixes: 24c2caa1c1 ("libcamera: base: log: Use `std::string_view` to avoid some copies")
Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com>
Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2025-06-23 16:40:43 +02:00
..
camera test: camera: Increase timeout for vimc capture tests 2024-06-03 11:53:01 +03:00
controls libcamera: Extend u16 control type 2024-11-28 17:46:50 +00:00
gstreamer treewide: Avoid some copies in range-based for loops 2024-11-27 16:20:51 +02:00
ipa libipa: histogram: Fix interQuantileMean() for small ranges 2025-04-03 12:36:07 +02:00
ipc libcamera: Avoid variable-length arrays 2024-07-31 01:22:13 +03:00
libtest libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
log libcamera: base: Fix log level parsing when multiple categories are 2025-06-23 16:40:43 +02:00
media_device libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
process libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
py test: py: LD_PRELOAD the C++ standard library when using ASan 2024-11-05 15:29:04 +02:00
serialization test: ipa_data_serialization: Use DebugMetadataEnable 2025-01-20 19:38:21 +02:00
stream libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
v4l2_compat libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
v4l2_subdevice libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
v4l2_videodevice libcamera: camera_sensor: Introduce CameraSensorFactory 2024-11-05 18:07:42 +01:00
bayer-format.cpp libcamera: Drop remaining file name from header comment blocks 2024-05-09 23:31:15 +03:00
byte-stream-buffer.cpp libcamera: Drop remaining file name from header comment blocks 2024-05-09 23:31:15 +03:00
camera-sensor.cpp libcamera: camera_sensor: Introduce CameraSensorFactory 2024-11-05 18:07:42 +01:00
color-space.cpp test: Add a ColorSpace test 2022-08-26 01:04:27 +03:00
delayed_controls.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
event-dispatcher.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
event-thread.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
event.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
fence.cpp test: fence: Increase timeout for fence test 2024-06-03 11:53:07 +03:00
file.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
flags.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
geometry.cpp libcamera: geometry: Add Rectangle::transformedBetween() 2024-12-17 10:31:44 +01:00
hotplug-cameras.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
mapped-buffer.cpp test: Remove using namespace in header files 2021-10-15 05:05:43 +03:00
matrix.cpp test: Add minimal test for Matrix 2025-05-20 09:49:01 +02:00
meson.build test: Add minimal test for Matrix 2025-05-20 09:49:01 +02:00
message.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
object-delete.cpp libcamera: Drop remaining file name from header comment blocks 2024-05-09 23:31:15 +03:00
object-invoke.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
object.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
pixel-format.cpp libcamera/base: Move utils to the base library 2021-06-25 16:11:02 +01:00
public-api.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
shared-fd.cpp libcamera: Drop remaining file name from header comment blocks 2024-05-09 23:31:15 +03:00
signal-threads.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
signal.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
span.cpp test: span: Use intended variable 2024-12-05 22:29:57 +02:00
threads.cpp test: threads: Use pthread_testcancel() 2025-03-21 17:35:41 +01:00
timer-fail.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
timer-thread.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
timer.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
transform.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
unique-fd.cpp libcamera: Drop file name from header comment blocks 2024-05-08 22:39:50 +03:00
utils.cpp test: utils: Extend utils::hex() test to 8-bit and 16-bit values 2024-07-04 14:03:59 +03:00
vector.cpp libcamera: Adapt Vector class to new location 2025-02-12 14:26:27 +01:00
yaml-parser.cpp libcamera: yaml-parser: Differentiate between empty and empty string 2024-09-23 13:03:35 +02:00