aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2021-02-24 18:21:04 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2022-02-02 13:29:12 +0100
commitfbd75a1389d088a58a860c84fd96a45f318397e5 (patch)
tree36892706f94ab16d665129e95f26bb272012f331
parentf712b6252090b2be4f7683da2d6b037c8ad549fb (diff)
downloadhardware_replicant_libsamsung-ipc-fbd75a1389d088a58a860c84fd96a45f318397e5.tar.gz
hardware_replicant_libsamsung-ipc-fbd75a1389d088a58a860c84fd96a45f318397e5.tar.bz2
hardware_replicant_libsamsung-ipc-fbd75a1389d088a58a860c84fd96a45f318397e5.zip
device: generic: add more poll debugging
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--samsung-ipc/devices/generic/generic.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/samsung-ipc/devices/generic/generic.c b/samsung-ipc/devices/generic/generic.c
index 1c78780..4f6b01b 100644
--- a/samsung-ipc/devices/generic/generic.c
+++ b/samsung-ipc/devices/generic/generic.c
@@ -533,6 +533,8 @@ int generic_poll(__attribute__((unused)) struct ipc_client *client,
int rc;
struct pollfd fd;
+ ipc_client_log(client, "ENTER %s", __func__);
+
if (data == NULL)
return -1;
@@ -541,8 +543,11 @@ int generic_poll(__attribute__((unused)) struct ipc_client *client,
fd.fd = transport_data->fd;
fd.events = POLLRDNORM | POLLIN;
+ ipc_client_log(client, "%s: transport_data->fd: %d", __func__, transport_data->fd);
rc = poll(&fd, 1, -1);
+ ipc_client_log(client, "%s: poll: %d", __func__, rc);
+
return rc - 1;
}