summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/internal/log.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/libcamera/internal/log.h b/include/libcamera/internal/log.h
index be0bab3c..b66bf55b 100644
--- a/include/libcamera/internal/log.h
+++ b/include/libcamera/internal/log.h
@@ -117,9 +117,10 @@ LogMessage _log(const LogCategory *category, LogSeverity severity,
#endif /* __DOXYGEN__ */
#ifndef NDEBUG
-#define ASSERT(condition) static_cast<void>(({ \
- if (!(condition)) \
- LOG(Fatal) << "assertion \"" #condition "\" failed"; \
+#define ASSERT(condition) static_cast<void>(({ \
+ if (!(condition)) \
+ LOG(Fatal) << "assertion \"" #condition "\" failed in " \
+ << __func__ << "()"; \
}))
#else
#define ASSERT(condition) static_cast<void>(false && (condition))