dect
/
asterisk
Archived
13
0
Fork 0

print formats as 0x%x instead of %d in a warning message.

Being bitmasks, it is a lot easier to read this way.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77793 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
rizzo 2007-07-30 19:42:25 +00:00
parent 654be731b0
commit e862408540
1 changed files with 1 additions and 1 deletions

View File

@ -3115,7 +3115,7 @@ struct ast_channel *ast_request(const char *type, int format, void *data, int *c
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;