Skip to content

tests: Print context creation messages to stderr#660

Merged
pcercuei merged 1 commit intomasterfrom
fix-583
Apr 9, 2021
Merged

tests: Print context creation messages to stderr#660
pcercuei merged 1 commit intomasterfrom
fix-583

Conversation

@pcercuei
Copy link
Copy Markdown
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 paul@crapouillou.net

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 <paul@crapouillou.net>
@rgetz
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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