summaryrefslogtreecommitdiff
path: root/channels/chan_phone.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_phone.c')
-rwxr-xr-xchannels/chan_phone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_phone.c b/channels/chan_phone.c
index 8b2261cbb..f699ee0bb 100755
--- a/channels/chan_phone.c
+++ b/channels/chan_phone.c
@@ -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;
}
}