summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/debug.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-10-25 20:36:10 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-10-25 20:36:10 +0000
commitcd1c58e031e29b83b85d433a90978745adc080c0 (patch)
tree426a5a492921058b3a564a49eef2461f1d75984c /libs/ardour/ardour/debug.h
parente3d162a4adf43893e72a4c756e8508e147b783e8 (diff)
search $TOP/build/default/gtk2_ardour BEFORE ../gtk2_ardour when looking for bindings files etc ; make debug tracing show the "debug option" the output relates to as a prefix
git-svn-id: svn://localhost/ardour2/branches/3.0@5915 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/debug.h')
-rw-r--r--libs/ardour/ardour/debug.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/ardour/ardour/debug.h b/libs/ardour/ardour/debug.h
index afaf7c221a..bc0fefb428 100644
--- a/libs/ardour/ardour/debug.h
+++ b/libs/ardour/ardour/debug.h
@@ -20,12 +20,14 @@
#ifndef __ardour_debug_h__
#define __ardour_debug_h__
+#include <stdint.h>
+
#include <sstream>
namespace ARDOUR {
extern uint64_t debug_bits;
- void debug_print (std::string str);
+ void debug_print (const char* prefix, std::string str);
void set_debug_bits (uint64_t bits);
namespace DEBUG {
@@ -42,7 +44,7 @@ namespace ARDOUR {
}
#ifndef NDEBUG
-#define DEBUG_TRACE(bits,str) if ((bits) & ARDOUR::debug_bits) { ARDOUR::debug_print (str); }
+#define DEBUG_TRACE(bits,str) if ((bits) & ARDOUR::debug_bits) { ARDOUR::debug_print (# bits, str); }
#define DEBUG_STR_SET(id,s) std::stringstream __debug_str ## id; __debug_str ## id << s;
#define DEBUG_STR(id) __debug_str ## id
#else