tools: iio: iio_generic_buffer: fix exit status
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | tools: iio: iio_generic_buffer: return 0 on successtools/ | +3 | 0 replies | |
| 2/2 | tools: iio: iio_generic_buffer: return error if no channels can be enabledtools/ | +1 | 0 replies |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Arnav Kapoor |
|---|---|
| Series | R-b |
| 1/2 | |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] tools: iio: iio_generic_buffer: fix exit status
This series fixes a wrong exit status in two cases for iio_generic_buffer. These issues were found during the process of using iio_generic_buffer in a bash shell script while testing buffered reads with the max30102 pulse oximeter.
All patches were tested on a Raspberry Pi 4 running the IIO subsystem tree testing branch with the max30102.
For patch 1, a normal buffered capture exited with 1 before and 0 after, with and without the -e flag.
For patch 2, running iio_generic_buffer as a non-root user exited with 0 before and 254 (-ENOENT) after.
Marco Chen (2):
tools: iio: iio_generic_buffer: return 0 on success
tools: iio: iio_generic_buffer: return error if no channels can be
enabled
tools/iio/iio_generic_buffer.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
base-commit: 39508411b82d4dc29dd245bb471ec9ecc1111c9d
Signature · 1 line
2.56.1