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/synapticsstr.h | |
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/synapticsstr.h')
-rw-r--r-- | src/synapticsstr.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/synapticsstr.h b/src/synapticsstr.h index 2986173..bd19c79 100644 --- a/src/synapticsstr.h +++ b/src/synapticsstr.h @@ -24,6 +24,17 @@ #include "synproto.h" +#ifdef DBG +# undef DBG +#endif + +#ifdef DEBUG +#define DBG(verb, ...) \ + xf86MsgVerb(X_INFO, verb, __VA_ARGS__) +#else +#define DBG(verb, msg, ...) /* */ +#endif + /****************************************************************************** * Definitions * structs, typedefs, #defines, enums |