summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-03-05 16:20:34 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-03-05 16:20:37 +0100
commit5e38d9fbabd3298508891977d5360a3202bfd1d2 (patch)
treea525462f7ac50758e9c2ecf323296ff28707bc08
parentb85a8393789dd98633e5b5dc20fe00c7fc3bdb16 (diff)
downloadhardware_replicant_libsamsung-ril-replicant-11-i9300-modem.tar.gz
hardware_replicant_libsamsung-ril-replicant-11-i9300-modem.tar.bz2
hardware_replicant_libsamsung-ril-replicant-11-i9300-modem.zip
samsung-ril: Add separator to differenciate open attemptsreplicant-11-i9300-modem
Without that, libsamsung-ril retries but we have no clear indication of where the retries begin and ends in the logs. Instead we see the same messages over and over again but if the logs are not clear enough, we don't know exactly where it failed. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--samsung-ril.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/samsung-ril.c b/samsung-ril.c
index aaeedeb..63bfe76 100644
--- a/samsung-ril.c
+++ b/samsung-ril.c
@@ -1591,6 +1591,20 @@ const RIL_RadioFunctions *RIL_Init(const struct RIL_Env *env,
rc = ril_client_open(ril_clients[i]);
if (rc < 0) {
failures++;
+ RIL_LOGD("%s: "
+ "Failed to open the %s client "
+ "after %d times, retrying",
+ __func__,
+ (ril_clients[i])->name,
+ failures);
+ RIL_LOGD("----------"
+ "----------"
+ "----------"
+ "----------"
+ "----------"
+ "----------"
+ "----------"
+ "----------\n");
usleep(RIL_CLIENT_RETRY_DELAY);
}
} while (rc < 0 && failures < RIL_CLIENT_RETRY_COUNT);