diff options
Diffstat (limited to 'evtest-capture.c')
-rw-r--r-- | evtest-capture.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/evtest-capture.c b/evtest-capture.c index c521cc0..0f68494 100644 --- a/evtest-capture.c +++ b/evtest-capture.c @@ -861,6 +861,10 @@ int main(int argc, char **argv) if (argc < 2) { int dev; + + if (getuid() != 0) + printf("Not running as root, no devices may be available.\n"); + dev = scan_devices(); if (dev == -1) { |