diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2012-09-20 13:38:39 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2012-09-20 13:38:39 +0000 |
commit | d1f4385b9a7316f45d280749b196c8280f85c828 (patch) | |
tree | 67666d67fd3977c2c205ee5647fdee89eaf6dca0 /xpp/xtalk | |
parent | ed70ef646dac16059072b11af4745afddee7118d (diff) |
xtalk: allow dump_packet() without debug flags
xtalk: dump_packet() may now be used without debug flags by passing
mask == 0.
Origin: Xorcom xtalk (r9302)
Signed-off-by: Oron Peled <oron.peled@xorcom.com>
Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@10710 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'xpp/xtalk')
-rw-r--r-- | xpp/xtalk/debug.c | 2 |
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]); |