Make development error message indicate which channel.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@289253 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Richard Mudgett
2010-09-29 16:16:47 +00:00
parent 3d39781818
commit 8ce2f83b20

View File

@@ -3624,7 +3624,9 @@ static struct ast_frame *__ast_read(struct ast_channel *chan, int dropaudio)
* this happens so that it can be addressed. * this happens so that it can be addressed.
*/ */
if (chan->fdno == -1) { if (chan->fdno == -1) {
ast_log(LOG_ERROR, "ast_read() called with no recorded file descriptor.\n"); ast_log(LOG_ERROR,
"ast_read() on chan '%s' called with no recorded file descriptor.\n",
chan->name);
} }
#endif #endif