summaryrefslogtreecommitdiff
path: root/tools/iio/lsiio.c
diff options
context:
space:
mode:
authorCristina Opriceana <cristina.opriceana@gmail.com>2015-07-17 18:43:42 +0300
committerJonathan Cameron <jic23@kernel.org>2015-07-20 20:41:24 +0300
commitd9abc615ea1659b6967a00e95b1b3a7fd4079b80 (patch)
tree6eac43b77eccb14c697c50bf7ccea372c0e3e918 /tools/iio/lsiio.c
parent34cbea1908fb686b037e01e5b1ab8e0e67b09ed3 (diff)
downloadlinux-d9abc615ea1659b6967a00e95b1b3a7fd4079b80.tar.xz
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.c2
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;
}