diff options
| author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-01-19 17:20:28 +0100 |
|---|---|---|
| committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-02-28 16:58:25 +0100 |
| commit | 25c35261a9e52b7eda36ac4f8b84df3aef91a592 (patch) | |
| tree | 4fbae806a81eb7e210838311e50b452651983fb2 | |
| parent | 46717cc0a19f614b557477b821d90a68914428e8 (diff) | |
| download | hardware_replicant_libsamsung-ril-25c35261a9e52b7eda36ac4f8b84df3aef91a592.tar.gz hardware_replicant_libsamsung-ril-25c35261a9e52b7eda36ac4f8b84df3aef91a592.tar.bz2 hardware_replicant_libsamsung-ril-25c35261a9e52b7eda36ac4f8b84df3aef91a592.zip | |
client: be more verbose about loop failures
The loop handler comes directly from libsamsung-ipc device
drivers, which in turn wrap the vendor kernel interfaces.
Given that there is some possible variation between the way
that the .loop implementations behaves, it's a good idea to
add prints to understand better what is going on in case of
issues.
With the development of a new set of kernel drivers and
libsamsung-ipc device driver for Replicant 11, we had a
situation where that code was triggered.
Note that, at the time of writing, we are not (yet) aware
of any behavior difference with the different .loop
implementations, but it would be worth checking if they all
behave in the same way.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
| -rw-r--r-- | client.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -180,7 +180,8 @@ void *ril_client_thread(void *data) rc = client->handlers->loop(client); if (rc < 0) { - RIL_LOGE("%s client loop failed", client->name); + RIL_LOGE("%s client loop failed with error %d", + client->name, rc); goto failure; } else { RIL_LOGE("%s client loop terminated", client->name); |
