diff options
author | Luigi Rizzo <rizzo@icir.org> | 2007-07-30 19:42:25 +0000 |
---|---|---|
committer | Luigi Rizzo <rizzo@icir.org> | 2007-07-30 19:42:25 +0000 |
commit | f66dbeb8f366b7ebc0be83b7d87be91484e6d2fd (patch) | |
tree | 6090ee2916604b8d846da8b4ab9190af2b484e53 /main | |
parent | 048bb3d9e3d5e4f48794f898e1606cc427a9d503 (diff) |
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: https://origsvn.digium.com/svn/asterisk/trunk@77793 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r-- | main/channel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/channel.c b/main/channel.c index d49344ad2..8380cf8b3 100644 --- a/main/channel.c +++ b/main/channel.c @@ -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; |