aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-07-03 21:48:22 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-07-04 14:47:22 +0200
commita948376fd72d3a239e9f5a2654dbc1dbd0326ff3 (patch)
tree3fed5e2402f310bee6585aab8aa94cf6ddbf6259
parent4272150bcc4b87099e683cb3e7442ce4b9f3ad56 (diff)
downloadhardware_replicant_libsamsung-ipc-a948376fd72d3a239e9f5a2654dbc1dbd0326ff3.tar.gz
hardware_replicant_libsamsung-ipc-a948376fd72d3a239e9f5a2654dbc1dbd0326ff3.tar.bz2
hardware_replicant_libsamsung-ipc-a948376fd72d3a239e9f5a2654dbc1dbd0326ff3.zip
Add more loogging
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--samsung-ipc/devices/n7100/n7100.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/samsung-ipc/devices/n7100/n7100.c b/samsung-ipc/devices/n7100/n7100.c
index da53270..c85791a 100644
--- a/samsung-ipc/devices/n7100/n7100.c
+++ b/samsung-ipc/devices/n7100/n7100.c
@@ -69,9 +69,13 @@ int n7100_boot(struct ipc_client *client)
ipc_client_log(client, "Opened modem link device");
*/
rc = xmm626_sec_modem_power(modem_boot_fd, 0);
+ if (rc < 0) {
+ ipc_client_log(client, "xmm626_sec_modem_power: Turning the modem off failed with error %d", rc);
+ goto error;
+ }
rc = xmm626_sec_modem_hci_power(0);
if (rc < 0) {
- ipc_client_log(client, "Turning the modem off failed");
+ ipc_client_log(client, "xmm626_sec_modem_hci_power: Turning the modem off failed");
goto error;
}
ipc_client_log(client, "Turned the modem off");