debug
This commit is contained in:
parent
497e083cc4
commit
3d0b6df5d0
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
const int open_res = open(iio->dev_path, O_RDONLY);
|
||||||
if (open_res < 0) {
|
if (open_res < 0) {
|
||||||
|
fprintf(stderr, "Error opening %s: %d", iio->dev_path, errno);
|
||||||
return open_res;
|
return open_res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue