[Asterisk-cvs] asterisk/channels chan_phone.c,1.28,1.29
markster at lists.digium.com
markster at lists.digium.com
Sat Jun 12 11:44:11 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv11556/channels
Modified Files:
chan_phone.c
Log Message:
Display error when having trouble reading from /dev/phone
Index: chan_phone.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_phone.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- chan_phone.c 9 Jun 2004 01:45:08 -0000 1.28
+++ chan_phone.c 12 Jun 2004 16:48:12 -0000 1.29
@@ -708,7 +708,7 @@
/* 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;
}
}
More information about the svn-commits
mailing list