summaryrefslogtreecommitdiffstats
path: root/tsak
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-09-23 14:37:24 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-09-23 14:37:24 -0500
commit54d1e57f4187ac5f033496c62354de10e6f159b3 (patch)
tree40b16bcc89c0f48a0e48fbb2363e84e2e1ba711b /tsak
parentc6cb95adbbbe0159337cbc72533f1defb77cb574 (diff)
downloadexperimental-54d1e57f4187ac5f033496c62354de10e6f159b3.tar.gz
experimental-54d1e57f4187ac5f033496c62354de10e6f159b3.zip
Make tsak error messages clearer
Diffstat (limited to 'tsak')
-rw-r--r--tsak/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tsak/main.cpp b/tsak/main.cpp
index b73609a..050d6c0 100644
--- a/tsak/main.cpp
+++ b/tsak/main.cpp
@@ -273,11 +273,12 @@ int main (int argc, char *argv[])
// Create filtered virtual output device
devout=open("/dev/misc/uinput",O_WRONLY|O_NONBLOCK);
if (devout<0) {
+ perror("open(\"/dev/misc/uinput\")");
devout=open("/dev/uinput",O_WRONLY|O_NONBLOCK);
}
if (devout<0) {
- fprintf(stderr,"Unable to open /dev/uinput or /dev/misc/uinput (char device 10:223).\nPossible causes: Device node inexistent or kernel not compiled with evdev user level driver support or permission denied.\n");
- perror("open(\"/dev/misc/uinput\")");
+ fprintf(stderr,"Unable to open /dev/uinput or /dev/misc/uinput (char device 10:223).\nPossible causes:\n 1) Device node does not exist\n 2) Kernel not compiled with evdev [INPUT_EVDEV] and uinput [INPUT_UINPUT] user level driver support\n 3) Permission denied.\n");
+ perror("open(\"/dev/uinput\")");
if (established)
sleep(1);
else