diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-11-02 10:06:01 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-11-05 08:51:46 +1000 |
commit | d3c1b80692013abb2f2dea6ec7acf1d8a89a18d2 (patch) | |
tree | a26d54a4bab598e37d73181d53d1dc79e2027659 /src/eventcomm.c | |
parent | 0198c02774a5063c5cf45b6eddef4a33d9f494d7 (diff) |
Clean up debugging system, allow for --enable-debug
Add --enable-debug to list of configure options.
Clean up the DBG macro to use xf86MsgVerb and supply the verbosity.
Don't use ErrorF from the driver, use xf86Msg instead.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Acked-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'src/eventcomm.c')
-rw-r--r-- | src/eventcomm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/eventcomm.c b/src/eventcomm.c index d8138d4..8287ca2 100644 --- a/src/eventcomm.c +++ b/src/eventcomm.c @@ -437,11 +437,11 @@ EventAutoDevProbe(LocalDevicePtr local) i = scandir(DEV_INPUT_EVENT, &namelist, EventDevOnly, alphasort); if (i < 0) { - ErrorF("Couldn't open %s\n", DEV_INPUT_EVENT); + xf86Msg(X_ERROR, "Couldn't open %s\n", DEV_INPUT_EVENT); return FALSE; } else if (i == 0) { - ErrorF("%s The /dev/input/event* device nodes seem to be missing\n", + xf86Msg(X_ERROR, "%s The /dev/input/event* device nodes seem to be missing\n", local->name); free(namelist); return FALSE; @@ -471,7 +471,7 @@ EventAutoDevProbe(LocalDevicePtr local) free(namelist); if (!touchpad_found) { - ErrorF("%s no synaptics event device found\n", local->name); + xf86Msg(X_ERROR, "%s no synaptics event device found\n", local->name); return FALSE; } return TRUE; |