[asterisk-commits] rizzo: trunk r77793 - /trunk/main/channel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jul 30 14:42:26 CDT 2007


Author: rizzo
Date: Mon Jul 30 14:42:25 2007
New Revision: 77793

URL: http://svn.digium.com/view/asterisk?view=rev&rev=77793
Log:
print formats as 0x%x instead of %d in a warning message.
Being bitmasks, it is a lot easier to read this way.


Modified:
    trunk/main/channel.c

Modified: trunk/main/channel.c
URL: http://svn.digium.com/view/asterisk/trunk/main/channel.c?view=diff&rev=77793&r1=77792&r2=77793
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Mon Jul 30 14:42:25 2007
@@ -3115,7 +3115,7 @@
 		fmt = format & AST_FORMAT_AUDIO_MASK;
 		res = ast_translator_best_choice(&fmt, &capabilities);
 		if (res < 0) {
-			ast_log(LOG_WARNING, "No translator path exists for channel type %s (native %d) to %d\n", type, chan->tech->capabilities, format);
+			ast_log(LOG_WARNING, "No translator path exists for channel type %s (native 0x%x) to 0x%x\n", type, chan->tech->capabilities, format);
 			*cause = AST_CAUSE_BEARERCAPABILITY_NOTAVAIL;
 			AST_RWLIST_UNLOCK(&channels);
 			return NULL;




More information about the asterisk-commits mailing list