summaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/utils/msg.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/host/include/uhd/utils/msg.hpp b/host/include/uhd/utils/msg.hpp
index b0f00e13d..3aac9577a 100644
--- a/host/include/uhd/utils/msg.hpp
+++ b/host/include/uhd/utils/msg.hpp
@@ -34,6 +34,10 @@
#define UHD_HERE() \
UHD_MSG(status) << __FILE__ << ":" << __LINE__ << std::endl
+//! Helpful debug tool to print a variable
+#define UHD_VAR(var) \
+ UHD_MSG(status) << #var << " = " << var << std::endl;
+
namespace uhd{ namespace msg{
//! Possible message types