Skip to content

Commit

Permalink
osc.c: remove error message for devices without triggers
Browse files Browse the repository at this point in the history
do not print :
" Failed to check if device has trigger. Error:No such file or directory"

The message is misleading, as there is no error.

Signed-off-by: Cristina Suteu <[email protected]>
  • Loading branch information
cristina-suteu committed Oct 5, 2023
1 parent 8ae9847 commit 8c59b51
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions osc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1430,10 +1430,6 @@ static double read_sampling_frequency(const struct iio_device *dev)
sizeof(buf));
else
ret = -ENOENT;
} else {
fprintf(stderr, "Failed to check if device: %s has trigger. Error:"
"%s\n", iio_device_get_name(dev) ?: iio_device_get_id(dev),
strerror(-ret));
}
}

Expand Down

0 comments on commit 8c59b51

Please sign in to comment.