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:
Mark Spencer 2004-06-12 16:48:12 +00:00
parent 439e5eeeb4
commit 9e3a90e249
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}