Linux IIO development
 help / color / mirror / Atom feed
* [PATCH 0/2] tools: iio: iio_generic_buffer: fix exit status
@ 2026-11-27  8:57 Marco Chen
  2026-11-27  8:57 ` [PATCH 1/2] tools: iio: iio_generic_buffer: return 0 on success Marco Chen
  2026-11-27  8:57 ` [PATCH 2/2] tools: iio: iio_generic_buffer: return error if no channels can be enabled Marco Chen
  0 siblings, 2 replies; 3+ messages in thread
From: Marco Chen @ 2026-11-27  8:57 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: David Lechner, Nuno Sá, Andy Shevchenko, Hartmut Knaack,
	Daniel Baluta, Linus Walleij, linux-iio, skhan,
	linux-kernel-mentees

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
-- 
2.56.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-27  8:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-27  8:57 [PATCH 0/2] tools: iio: iio_generic_buffer: fix exit status Marco Chen
2026-11-27  8:57 ` [PATCH 1/2] tools: iio: iio_generic_buffer: return 0 on success Marco Chen
2026-11-27  8:57 ` [PATCH 2/2] tools: iio: iio_generic_buffer: return error if no channels can be enabled Marco Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox