Display error when having trouble reading from /dev/phone
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3196 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
439e5eeeb4
commit
9e3a90e249
|
@ -708,7 +708,7 @@ static void phone_mini_packet(struct phone_pvt *i)
|
|||
/* Ignore stuff we read... */
|
||||
res = read(i->fd, buf, sizeof(buf));
|
||||
if (res < 1) {
|
||||
ast_log(LOG_WARNING, "Read returned %d\n", res);
|
||||
ast_log(LOG_WARNING, "Read returned %d: %s\n", res, strerror(errno));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue