Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iio_attr: after automaticed testing, make return codes consistant. #539

Merged
merged 1 commit into from
Jun 4, 2020

Commits on Jun 4, 2020

  1. 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]>
    rgetz committed Jun 4, 2020
    Configuration menu
    Copy the full SHA
    ec3b7ed View commit details
    Browse the repository at this point in the history