summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-02-25 15:40:17 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-02-28 16:58:24 +0100
commit46717cc0a19f614b557477b821d90a68914428e8 (patch)
tree40e7739272a09e54ed2c3506ad469a9275138991
parent3693e548bc404af9ced722974cd162c1e7da2825 (diff)
downloadhardware_replicant_libsamsung-ril-46717cc0a19f614b557477b821d90a68914428e8.tar.gz
hardware_replicant_libsamsung-ril-46717cc0a19f614b557477b821d90a68914428e8.tar.bz2
hardware_replicant_libsamsung-ril-46717cc0a19f614b557477b821d90a68914428e8.zip
Make libsamsung-ril print at startup
If we are in a situation where there are no prints from libsamsung-ril at all with 'logcat -b radio', having it print a log in all situations helps debugging why this could be hapenning. This way even if there is nothing in the logs, we at least know it was supposed to print a message at startup. This already happened with Android 11, where before the commit 34fdca14f7fb1623f733b64954c781b7dcf520f5 ("Fix logging on Android 11") we had nothing in the logs. Knowing that it should print something already takes out of the equasion silent failures without having to read lot of code or make error prone jugements. It is also more reliable than having to go through all the error paths like it is done with the commit daa706393f381002205e35ebaaa42a586ad91e52 ("RIL_Init: Make sure there are prints for each error paths"). Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--samsung-ril.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/samsung-ril.c b/samsung-ril.c
index fe7a703..aaeedeb 100644
--- a/samsung-ril.c
+++ b/samsung-ril.c
@@ -1545,6 +1545,8 @@ const RIL_RadioFunctions *RIL_Init(const struct RIL_Env *env,
unsigned int i;
int rc;
+ RIL_LOGD("libsamsung-ril: Started from %s\n", __func__);
+
if (env == NULL) {
RIL_LOGE("%s: Aborting: Invalid RIL_Env (RIL_Env is NULL)",
__func__);