summaryrefslogtreecommitdiffstats
path: root/src/daemon
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-03-20 13:29:42 +0100
committerLennart Poettering <lennart@poettering.net>2009-03-20 13:29:42 +0100
commitbd3154a861d7ed0c68c687dcaa214a181ffb9f9d (patch)
tree45a59e4eef93f840d732f00e92c383157651ccb1 /src/daemon
parentfe3709c5c73f9ce837837908fb644147d5fa4eae (diff)
introduce pa_assert_fp() for fast path assertions
Diffstat (limited to 'src/daemon')
-rw-r--r--src/daemon/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/daemon/main.c b/src/daemon/main.c
index 0048e7b7..47ca2673 100644
--- a/src/daemon/main.c
+++ b/src/daemon/main.c
@@ -851,6 +851,14 @@ int main(int argc, char *argv[]) {
pa_log_debug(_("Optimized build: no"));
#endif
+#ifdef NDEBUG
+ pa_log_debug(_("NDEBUG defined, all asserts disabled."));
+#elif defined(FASTPATH)
+ pa_log_debug(_("FASTPATH defined, only fast path asserts disabled."));
+#else
+ pa_log_debug(_("All asserts enabled."));
+#endif
+
if (!(s = pa_machine_id())) {
pa_log(_("Failed to get machine ID"));
goto finish;