diff options
author | Cristina Opriceana | 2015-07-17 18:43:42 +0300 |
---|---|---|
committer | Jonathan Cameron | 2015-07-20 18:41:24 +0100 |
commit | d9abc615ea1659b6967a00e95b1b3a7fd4079b80 (patch) | |
tree | 6eac43b77eccb14c697c50bf7ccea372c0e3e918 /tools/iio/lsiio.c | |
parent | 34cbea1908fb686b037e01e5b1ab8e0e67b09ed3 (diff) |
tools: iio: Send error messages to stderr
This patch indends to make some cleanup and send printf
error messages to stderr. The changes were performed with coccinelle
for failure messages and manual for other cases, such as wrong usage
messages.
Signed-off-by: Cristina Opriceana <cristina.opriceana@gmail.com>
Reviewed-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'tools/iio/lsiio.c')
-rw-r--r-- | tools/iio/lsiio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/iio/lsiio.c b/tools/iio/lsiio.c index 4f8172fe7881..b271a9a796d2 100644 --- a/tools/iio/lsiio.c +++ b/tools/iio/lsiio.c @@ -108,7 +108,7 @@ static int dump_devices(void) dp = opendir(iio_dir); if (!dp) { - printf("No industrial I/O devices available\n"); + fprintf(stderr, "No industrial I/O devices available\n"); return -ENODEV; } |