summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xpp/xtalk/debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xpp/xtalk/debug.c b/xpp/xtalk/debug.c
index eea2d82..4d7393d 100644
--- a/xpp/xtalk/debug.c
+++ b/xpp/xtalk/debug.c
@@ -48,7 +48,7 @@ void dump_packet(int loglevel, int mask, const char *msg, const char *buf, int l
{
int i;
- if(mask & debug_mask) {
+ if(!mask || (mask & debug_mask)) {
log_function(loglevel, ~0, "%-15s:", msg);
for(i = 0; i < len; i++)
log_function(loglevel, ~0, " %02X", (uint8_t)buf[i]);