Skip to content

tools: iio: iio_generic_buffer: fix exit status

Marco Chen linux-iio linux-kernel-mentees 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tools: iio: iio_generic_buffer: return 0 on successtools/iio/iio_generic_buffer.c+3 -10 replies
2/2tools: iio: iio_generic_buffer: return error if no channels can be enabledtools/iio/iio_generic_buffer.c+1 -00 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.

PatchArnav Kapoor
SeriesR-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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