aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/devices/n7100/n7100.c
diff options
context:
space:
mode:
Diffstat (limited to 'samsung-ipc/devices/n7100/n7100.c')
-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");