summaryrefslogtreecommitdiff
path: root/tools/list-local-devices.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2013-04-26 09:30:05 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2013-04-30 16:31:52 +1000
commit262cbd38ad6bd1ba0168b3fcfc8f3302127efdf4 (patch)
tree3bf5ecaebf583fe0d68615bdb55b2f74b18c1e79 /tools/list-local-devices.c
parent395c2a0a7eb6cea2c1ae08cd02097cb580981bf7 (diff)
downloadlibwacom-262cbd38ad6bd1ba0168b3fcfc8f3302127efdf4.tar.gz
tools: use stdout for printing, not stdin
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reported-by: Joaquim Rocha <jrocha@redhat.com> Tested-by: Joaquim Rocha <jrocha@redhat.com>
Diffstat (limited to 'tools/list-local-devices.c')
-rw-r--r--tools/list-local-devices.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/list-local-devices.c b/tools/list-local-devices.c
index 17cd28c..6aa7600 100644
--- a/tools/list-local-devices.c
+++ b/tools/list-local-devices.c
@@ -31,6 +31,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
#include <assert.h>
#include <dirent.h>
#include <glib/gi18n.h>
@@ -98,10 +99,10 @@ int main(int argc, char **argv)
dev = libwacom_new_from_path(db, fname, WFALLBACK_NONE, NULL);
if (!dev)
continue;
- libwacom_print_device_description(0, dev);
+ libwacom_print_device_description(STDOUT_FILENO, dev);
libwacom_destroy(dev);
- fprintf(stdout, "---------------------------------------------------------------\n");
+ dprintf(STDOUT_FILENO, "---------------------------------------------------------------\n");
}
out: