From fed2512c40328c38d55eb26858f69d8819b14fd2 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Thu, 18 Jul 2019 17:00:00 +0200 Subject: Add debug Why does it do that: E use-Rlog/RLOG-RIL-IPC: Opening IPC FMT client failed <- RIL_Init/ril_client_open? E use-Rlog/RLOG-RIL: Opening IPC FMT client failed D use-Rlog/RLOG-RIL-IPC: Starting generic modem boot instead of that: E use-Rlog/RLOG-RIL: Opening IPC FMT client failed <- ril_client_thread? D use-Rlog/RLOG-RIL: Closed IPC FMT client D use-Rlog/RLOG-RIL-IPC: Starting i9300 modem boot Signed-off-by: Denis 'GNUtoo' Carikli --- client.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'client.c') diff --git a/client.c b/client.c index 8958fd4..a7d71c6 100644 --- a/client.c +++ b/client.c @@ -156,6 +156,7 @@ void *ril_client_thread(void *data) rc = ril_client_open(client); if (rc < 0) { + RIL_LOGE("%s goto failure", __FUNCTION__); RIL_UNLOCK(); goto failure; } @@ -173,15 +174,24 @@ void *ril_client_thread(void *data) } failure: + RIL_LOGE("%s failure #%d", __FUNCTION__, client->failures); + client->failures++; } while (client->failures < RIL_CLIENT_RETRY_COUNT); + RIL_LOGE("%s Before lock", __FUNCTION__); + RIL_LOCK(); + RIL_LOGE("%s inside lock", __FUNCTION__); ril_client_close(client); + RIL_LOGE("%s client close done", __FUNCTION__); + ril_client_destroy(client); + RIL_LOGE("%s client destroy done", __FUNCTION__); RIL_UNLOCK(); + RIL_LOGE("%s outside lock", __FUNCTION__); RIL_LOGD("Stopped %s client loop", client->name); -- cgit v1.2.3