[svn-commits] tzafrir: tools/trunk r10710 - /tools/trunk/xpp/xtalk/debug.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Sep 20 08:38:43 CDT 2012


Author: tzafrir
Date: Thu Sep 20 08:38:39 2012
New Revision: 10710

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10710
Log:
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>

Modified:
    tools/trunk/xpp/xtalk/debug.c

Modified: tools/trunk/xpp/xtalk/debug.c
URL: http://svnview.digium.com/svn/dahdi/tools/trunk/xpp/xtalk/debug.c?view=diff&rev=10710&r1=10709&r2=10710
==============================================================================
--- tools/trunk/xpp/xtalk/debug.c (original)
+++ tools/trunk/xpp/xtalk/debug.c Thu Sep 20 08:38:39 2012
@@ -48,7 +48,7 @@
 {
 	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]);




More information about the svn-commits mailing list