diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-09-23 14:37:24 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-09-23 14:37:24 -0500 |
commit | 855a823c557e47779228d0c9da4c38a7c3f9882b (patch) | |
tree | a053747a26498b7542bb98d3bbaed00f12885d0b | |
parent | a84030d5d9e264b401d8c9943cb559d8993d141f (diff) | |
download | tde-855a823c557e47779228d0c9da4c38a7c3f9882b.tar.gz tde-855a823c557e47779228d0c9da4c38a7c3f9882b.zip |
Make tsak error messages clearer
-rw-r--r-- | experimental/tsak/main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/experimental/tsak/main.cpp b/experimental/tsak/main.cpp index b73609a67..050d6c05f 100644 --- a/experimental/tsak/main.cpp +++ b/experimental/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 |