Enabled CHECK() logs for m130 Tizen Profile 27/318827/7
authorSumant Chaudhary <sumant.c@samsung.com>
Fri, 24 Jan 2025 11:06:17 +0000 (16:36 +0530)
committerInsoon Kim <is46.kim@samsung.com>
Fri, 28 Feb 2025 13:36:09 +0000 (13:36 +0000)
CHECK() print log showing filename,function and line number in the dlogutil.

Change-Id: If90fcf2be144fa68eaa7302c3457ae9d61a8d55b
Signed-off-by: Sumant Chaudhary <sumant.c@samsung.com>
base/check.h
base/check_op.h

index 6c1e329ff04667580c750a6059751262249c6a4d..36fb56a373a2c69779be64aa05d58a50ea6d64dc 100644 (file)
@@ -205,7 +205,11 @@ class BASE_EXPORT NotReachedNoreturnError : public CheckError {
 #error "Debug builds are not expected to be optimized as official builds."
 #endif  // defined(OFFICIAL_BUILD) && !defined(NDEBUG)
 
-#if defined(OFFICIAL_BUILD) && !DCHECK_IS_ON()
+#if BUILDFLAG(IS_TIZEN)
+#define ENABLE_CHECK_LOGGING
+#endif
+
+#if defined(OFFICIAL_BUILD) && !DCHECK_IS_ON() && !defined(ENABLE_CHECK_LOGGING)
 // Note that this uses IMMEDIATE_CRASH_ALWAYS_INLINE to force-inline in debug
 // mode as well. See LoggingTest.CheckCausesDistinctBreakpoints.
 [[noreturn]] NOMERGE IMMEDIATE_CRASH_ALWAYS_INLINE void CheckFailure() {
index bab474ab9ff0a73ffb411444fc40a1f4973e6f9e..c63923ec110d1fafb41a178fe8ca35c31b384d3a 100644 (file)
@@ -178,7 +178,7 @@ BASE_EXPORT char* CreateCheckOpLogMessageString(const char* expr_str,
     else                                                                     \
       check_failure_function(message_on_fail __VA_OPT__(, ) __VA_ARGS__)
 
-#if !CHECK_WILL_STREAM()
+#if !CHECK_WILL_STREAM() || defined(ENABLE_CHECK_LOGGING)
 
 // Discard log strings to reduce code bloat.
 #define CHECK_OP(name, op, val1, val2, ...)                                \