From 3d0b6df5d0e8085f828fd04edadca7b3cd5d1190 Mon Sep 17 00:00:00 2001 From: Denis Date: Mon, 11 Dec 2023 23:06:12 +0100 Subject: [PATCH] debug --- dev_iio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dev_iio.c b/dev_iio.c index 70763a5..77f56bb 100644 --- a/dev_iio.c +++ b/dev_iio.c @@ -392,6 +392,7 @@ int dev_iio_get_buffer_fd(dev_iio_t *const iio) { const int open_res = open(iio->dev_path, O_RDONLY); if (open_res < 0) { + fprintf(stderr, "Error opening %s: %d", iio->dev_path, errno); return open_res; }