summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-07-18 17:00:00 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-09-03 18:35:30 +0200
commitfed2512c40328c38d55eb26858f69d8819b14fd2 (patch)
treec629e7cbd96861eb1cea83bf5aa694758a850344
parent8ab60c191050c102a4bfce7f52e542d7a41b10a6 (diff)
downloadhardware_replicant_libsamsung-ril-GNUtoo/modem-i9300.tar.gz
hardware_replicant_libsamsung-ril-GNUtoo/modem-i9300.tar.bz2
hardware_replicant_libsamsung-ril-GNUtoo/modem-i9300.zip
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 <GNUtoo@cyberdimension.org>
-rw-r--r--client.c10
-rw-r--r--ipc.c6
-rw-r--r--samsung-ril.c1
3 files changed, 15 insertions, 2 deletions
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);
diff --git a/ipc.c b/ipc.c
index 3286370..1ef4fae 100644
--- a/ipc.c
+++ b/ipc.c
@@ -283,6 +283,7 @@ int ipc_fmt_open(struct ril_client *client)
rc = ipc_client_open(data->ipc_client);
if (rc < 0) {
RIL_LOGE("Opening %s client failed", client->name);
+ RIL_LOGE("%s goto error", __FUNCTION__);
goto error;
}
@@ -336,7 +337,7 @@ int ipc_fmt_close(struct ril_client *client)
if (client->failures != 1) {
rc = ipc_client_power_off(data->ipc_client);
if (rc < 0) {
- RIL_LOGE("Powering off %s client failed", client->name);
+ RIL_LOGE("%s: Powering off %s client failed", __FUNCTION__, client->name);
goto error;
}
}
@@ -877,6 +878,7 @@ int ipc_rfs_open(struct ril_client *client)
rc = ipc_client_open(data->ipc_client);
if (rc < 0) {
RIL_LOGE("Opening %s client failed", client->name);
+ RIL_LOGE("%s goto error", __FUNCTION__);
goto error;
}
@@ -926,7 +928,7 @@ int ipc_rfs_close(struct ril_client *client)
rc = ipc_client_power_off(data->ipc_client);
if (rc < 0) {
- RIL_LOGE("Powering off %s client failed", client->name);
+ RIL_LOGE("%s: Powering off %s client failed", __FUNCTION__, client->name);
goto error;
}
diff --git a/samsung-ril.c b/samsung-ril.c
index bae43e9..b1caf51 100644
--- a/samsung-ril.c
+++ b/samsung-ril.c
@@ -1603,6 +1603,7 @@ const RIL_RadioFunctions *RIL_Init(const struct RIL_Env *env,
do {
rc = ril_client_open(ril_clients[i]);
if (rc < 0) {
+ RIL_LOGE("%s: open error for %s: %d", __FUNCTION__, ril_clients[i]->name, rc);
failures++;
usleep(RIL_CLIENT_RETRY_DELAY);
}