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>
This commit is contained in:

committed by
Jonathan Cameron

parent
34cbea1908
commit
d9abc615ea
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user