-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iio_attr: after automaticed testing, make return codes consistant.
After putting together some automated tests for iio_attr (which I will check in later), fix some inconsistancies in iio_attr, which makes the return codes return error on errors, and success on a success. Split up reporting of buffers, to make it easier to find scan, input and output buffers. Now you can see things like this: rgetz@brain:~/github/libiio/build$ ./tests/iio_attr -a usb -i -o -s -c Using auto-detected IIO context at URI "usb:3.49.5" IIO context has 5 devices: iio:device0, adm1177: found 0 scan, 0 output, 2 input channels iio:device1, ad9361-phy: found 0 scan, 5 output, 4 input channels iio:device2, xadc: found 0 scan, 0 output, 10 input channels iio:device3, cf-ad9361-dds-core-lpc: found 2 scan, 6 output, 0 input channels iio:device4, cf-ad9361-lpc: found 2 scan, 0 output, 2 input channels Which makes it easier to understand a device. Signed-off-by: Robin Getz <[email protected]>
- Loading branch information
Showing
1 changed file
with
47 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters