diff options
-rw-r--r-- | ipc.c | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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; } } |