summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ipc.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/ipc.c b/ipc.c
index 1a6c877..e41823f 100644
--- a/ipc.c
+++ b/ipc.c
@@ -445,14 +445,24 @@ int ipc_fmt_loop(struct ril_client *client)
if (fds.fds[0] == data->event_fd && fds.count > 0) {
rc = eventfd_recv(data->event_fd, &event);
- if (rc < 0)
+ if (rc < 0) {
+ RIL_LOGE("Receiving %s data with eventfd_recv "
+ "failed with error %d",
+ client->name, rc);
goto error;
+ }
switch (event) {
case IPC_CLIENT_CLOSE:
+ RIL_LOGE("Closing %s due to "
+ "IPC_CLIENT_CLOSE",
+ client->name);
rc = 0;
goto complete;
case IPC_CLIENT_IO_ERROR:
+ RIL_LOGE("Exiting %s due to "
+ "IPC_CLIENT_IO_ERROR",
+ client->name);
goto error;
}
}