summaryrefslogtreecommitdiff
path: root/libs/ardour/session_handle.cc
diff options
context:
space:
mode:
authorSakari Bergen <sakari.bergen@beatwaves.net>2011-01-16 19:17:45 +0000
committerSakari Bergen <sakari.bergen@beatwaves.net>2011-01-16 19:17:45 +0000
commitdad0671ba04d5c8151fbc448f3e35243f28c87c7 (patch)
treed90ade1b37ae603981a8d5df32b3a5011abacc91 /libs/ardour/session_handle.cc
parent64abea1db27bc51f13e6fd9ca3f0e23954729993 (diff)
Add dynamic type to SessionHandleRef debug output
git-svn-id: svn://localhost/ardour2/branches/3.0@8516 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_handle.cc')
-rw-r--r--libs/ardour/session_handle.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/ardour/session_handle.cc b/libs/ardour/session_handle.cc
index 14ba994dc3..f36fff4785 100644
--- a/libs/ardour/session_handle.cc
+++ b/libs/ardour/session_handle.cc
@@ -17,6 +17,7 @@
*/
+#include "pbd/demangle.h"
#include "pbd/error.h"
#include "pbd/boost_debug.h"
@@ -82,5 +83,9 @@ SessionHandleRef::session_going_away ()
void
SessionHandleRef::insanity_check ()
{
- cerr << string_compose (_("programming error: %1"), "SessionHandleRef exists across sesssion deletion!") << endl;
+ cerr << string_compose (
+ _("programming error: %1"),
+ string_compose("SessionHandleRef exists across sesssion deletion! Dynamic type: %1",
+ PBD::demangled_name (*this)))
+ << endl;
}