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

tests: Print context creation messages to stderr #660

Merged
merged 1 commit into from
Apr 9, 2021
Merged

Conversation

pcercuei
Copy link
Contributor

@pcercuei pcercuei commented Apr 1, 2021

When using iio_readdev, stdout is reserved for the data output; so
information messages about the context creation must be sent to stderr
so that the data stream is not polluted.

Fixes #583.

Signed-off-by: Paul Cercueil [email protected]

When using iio_readdev, stdout is reserved for the data output; so
information messages about the context creation must be sent to stderr
so that the data stream is not polluted.

Fixes #583.

Signed-off-by: Paul Cercueil <[email protected]>
@rgetz
Copy link
Contributor

rgetz commented Apr 2, 2021

Did we just want to print this while "-v" (verbose)? So in the normal case, people don't need to redirect stderr?

@pcercuei
Copy link
Contributor Author

pcercuei commented Apr 7, 2021

I don't think people need to redirect stderr, since they probably redirect stdout already - stderr would just end up in the terminal.
There is no "-v" option yet anyway, is there?

@pcercuei
Copy link
Contributor Author

pcercuei commented Apr 9, 2021

I'll merge this now as a quick & easy fix, we can still rework it later with a "verbose" option.

@pcercuei pcercuei merged commit 8f53a94 into master Apr 9, 2021
@pcercuei pcercuei deleted the fix-583 branch April 9, 2021 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

iio_readdev corrupts the data when using auto detection
3 participants