dect
/
asterisk
Archived
13
0
Fork 0

make write() failures on Zap channels more prominent than 'debug' messages (bug #4107)

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5531 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
kpfleming 2005-04-29 15:32:44 +00:00
parent f3c48c84c0
commit 338e11fdc6
1 changed files with 1 additions and 2 deletions

View File

@ -4391,8 +4391,7 @@ static int my_zt_write(struct zt_pvt *p, unsigned char *buf, int len, int index,
size = (linear ? READ_SIZE * 2 : READ_SIZE);
res = write(fd, buf, size);
if (res != size) {
if (option_debug)
ast_log(LOG_DEBUG, "Write returned %d (%s) on channel %d\n", res, strerror(errno), p->channel);
ast_log(LOG_WARNING, "Write returned %d (%s) on channel %d - audio may have been lost\n", res, strerror(errno), p->channel);
return sent;
}
len -= size;