]> sourceware.org Git - dm.git/commitdiff
add stack macro
authorAlasdair Kergon <agk@redhat.com>
Fri, 10 Jun 2005 22:08:51 +0000 (22:08 +0000)
committerAlasdair Kergon <agk@redhat.com>
Fri, 10 Jun 2005 22:08:51 +0000 (22:08 +0000)
include/log.h

index bf7a797bd7296c50e35aa59e7720ec9d539ca463..d9ad1e05b96aa0beec79dd550fdea7c2e13d84e8 100644 (file)
@@ -35,4 +35,6 @@ extern dm_log_fn _log;
 #define log_very_verbose(x...) plog(_LOG_INFO, x)
 #define log_debug(x...) plog(_LOG_DEBUG, x)
 
+#define stack log_debug("<backtrace>")  /* Backtrace on error */
+
 #endif
This page took 0.024961 seconds and 5 git commands to generate.