From 467184120b501db8640b1d9e3431171a0b94e860 Mon Sep 17 00:00:00 2001 From: Eran Date: Sun, 26 May 2024 09:14:08 +0300 Subject: [PATCH] fixup! add rsutils::g_librealsense_elpp_id --- .../rsutils/include/rsutils/easylogging/easyloggingpp.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/third-party/rsutils/include/rsutils/easylogging/easyloggingpp.h b/third-party/rsutils/include/rsutils/easylogging/easyloggingpp.h index 781463d3c76..d058a71068b 100644 --- a/third-party/rsutils/include/rsutils/easylogging/easyloggingpp.h +++ b/third-party/rsutils/include/rsutils/easylogging/easyloggingpp.h @@ -48,7 +48,8 @@ #else //__ANDROID__ -// Direct log to ELPP, without conversion to string first +// Direct log to ELPP, without conversion to string first; use this as an optimization, if you have simple string output +// // We've seen cases where this fails in U22, causing weird effects with custom overloads/types (e.g., json) #define LIBRS_LOG_STR_( LEVEL, STR ) \ do \ @@ -94,6 +95,7 @@ namespace rsutils { +// This is a caching of LIBREALSENSE_ELPP_ID in a string, as a performance optimization extern std::string const g_librealsense_elpp_id;