diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2019-07-04 18:14:32 +0200 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2019-07-04 18:14:32 +0200 |
commit | bf1bcdf5162c1abe559aba283dc8e64752b6412b (patch) | |
tree | 6c5b3e1e25034c1c5600192dd58a39e87ebb1b73 | |
parent | b36176e5829b3f6a40405f0a46710513a9b0618b (diff) | |
download | hardware_replicant_libsamsung-ipc-bf1bcdf5162c1abe559aba283dc8e64752b6412b.tar.gz hardware_replicant_libsamsung-ipc-bf1bcdf5162c1abe559aba283dc8e64752b6412b.tar.bz2 hardware_replicant_libsamsung-ipc-bf1bcdf5162c1abe559aba283dc8e64752b6412b.zip |
Add more debugging just in case the issue does not come from strncmp
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r-- | samsung-ipc/ipc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/samsung-ipc/ipc.c b/samsung-ipc/ipc.c index 9028394..24b532a 100644 --- a/samsung-ipc/ipc.c +++ b/samsung-ipc/ipc.c @@ -107,8 +107,10 @@ int ipc_device_detect(void) kernel_version = strdup(utsname.release); #endif - if (name == NULL && board_name == NULL) + if (name == NULL && board_name == NULL) { + printf("%s name and board_name are NULL\n", __FUNCTION__); goto error; + } for (i = 0; i < (int) ipc_devices_count; i++) { // Eliminate index if neither name nor board name can be checked @@ -142,6 +144,7 @@ error: index = -1; complete: + printf("%s: complete: [%d] name:%s board_name:%s\n", __FUNCTION__, index, name, board_name); if (name != NULL) free(name); |