[Pkg-voip-commits] [dahdi-tools] 89/285: xtalk: allow dump_packet() without debug flags

tzafrir at debian.org tzafrir at debian.org
Thu Jul 7 19:18:35 UTC 2016


This is an automated email from the git hooks/post-receive script.

tzafrir pushed a commit to branch master
in repository dahdi-tools.

commit 99ebb2a94c97d101def85bc79772dcf5b318e6de
Author: Oron Peled <oron.peled at xorcom.com>
Date:   Thu Sep 20 13:38:39 2012 +0000

    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 at xorcom.com>
    Acked-by: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
    
    git-svn-id: http://svn.astersk.org/svn/dahdi/tools/trunk@10710 17933a7a-c749-41c5-a318-cba88f637d49
---
 xpp/xtalk/debug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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]);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/dahdi-tools.git



More information about the Pkg-voip-commits mailing list