From 5724164fa199cbdd4b7c736ef5153836d7a847d7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 23 Sep 2011 19:37:11 +0000 Subject: Make tsak error messages clearer git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1255172 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- tsak/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tsak') diff --git a/tsak/main.cpp b/tsak/main.cpp index b73609a67..050d6c05f 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 -- cgit v1.2.3