aboutsummaryrefslogtreecommitdiffstats
path: root/evtest-capture.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-11-07 17:22:10 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-11-11 09:35:15 +1000
commit89b8aa466e1edd1566353bd335d12acbf7938d8e (patch)
treedf6b29807ccfd8a6c2938dcdaf2a39bff6d4eb45 /evtest-capture.c
parent60499b46311d23c25ca505ead6f4e0d0cbca446f (diff)
downloadexternal_evtest-89b8aa466e1edd1566353bd335d12acbf7938d8e.tar.gz
external_evtest-89b8aa466e1edd1566353bd335d12acbf7938d8e.tar.bz2
external_evtest-89b8aa466e1edd1566353bd335d12acbf7938d8e.zip
evtest-capture: Printf to stderr about what we're doing.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'evtest-capture.c')
-rw-r--r--evtest-capture.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/evtest-capture.c b/evtest-capture.c
index 42ad3ba..1d8819d 100644
--- a/evtest-capture.c
+++ b/evtest-capture.c
@@ -714,6 +714,8 @@ static int print_info(int fd, xmlTextWriterPtr writer)
call(print_capabilities(fd, writer));
end("info");
+ fprintf(stderr, "Capturing device '%s'.\n", name);
+
return 0;
error:
return -1;
@@ -759,6 +761,8 @@ static int print_events(int fd, xmlTextWriterPtr writer)
sigact.sa_flags = 0;
sigaction(SIGINT, &sigact, &sigact);
+
+ fprintf(stderr, "Press Ctrl+C to stop.\n");
while(!stop)
{
rc = read(fd, &ev, sizeof(struct input_event));