Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1177958
| From | Cristina Opriceana <cristina.opriceana@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 3/4] tools: iio: generic_buffer: Maintain fprintf() messages consistent |
| Date | 2015-07-07 01:00 +0200 |
| Message-ID | <pJnwK-5Vl-13@gated-at.bofh.it> (permalink) |
| References | <pJnn4-5RR-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Ensure that both of the error messages get to the
same standard stream.
Signed-off-by: Cristina Opriceana <cristina.opriceana@gmail.com>
---
tools/iio/generic_buffer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/iio/generic_buffer.c b/tools/iio/generic_buffer.c
index af350cc..ac9b954 100644
--- a/tools/iio/generic_buffer.c
+++ b/tools/iio/generic_buffer.c
@@ -325,7 +325,7 @@ int main(int argc, char **argv)
ret = build_channel_array(dev_dir_name, &channels, &num_channels);
if (ret) {
fprintf(stderr, "Problem reading scan element information\n");
- printf("diag %s\n", dev_dir_name);
+ fprintf(stderr, "diag %s\n", dev_dir_name);
goto error_free_triggername;
}
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 0/4] tools: iio: Send error messages to stderr Cristina Opriceana <cristina.opriceana@gmail.com> - 2015-07-07 00:50 +0200 [PATCH 4/4] tools: iio: iio_utils: Move general error messages to stderr Cristina Opriceana <cristina.opriceana@gmail.com> - 2015-07-07 01:00 +0200 [PATCH 1/4] tools: iio: Move printf failiure messages to stderr Cristina Opriceana <cristina.opriceana@gmail.com> - 2015-07-07 01:00 +0200 [PATCH 2/4] tools: iio: Send usage error messages to stderr Cristina Opriceana <cristina.opriceana@gmail.com> - 2015-07-07 01:00 +0200 [PATCH 3/4] tools: iio: generic_buffer: Maintain fprintf() messages consistent Cristina Opriceana <cristina.opriceana@gmail.com> - 2015-07-07 01:00 +0200
csiph-web