mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-28 02:40:07 +01:00
util: make the trace macro actually useful
This has been there for years and I never used it. Much better to convert it to a generically useful one (i.e. one that prints red so it's easy to see) and make it unconditional. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
72af32c89e
commit
c4cb4da33a
1 changed files with 3 additions and 6 deletions
|
|
@ -57,15 +57,12 @@
|
|||
#define DEFAULT_MOUSE_DPI 1000
|
||||
#define DEFAULT_TRACKPOINT_SENSITIVITY 128
|
||||
|
||||
#ifdef DEBUG_TRACE
|
||||
#define debug_trace(...) \
|
||||
#define trace(...) \
|
||||
do { \
|
||||
printf("%s:%d %s() - ", __FILE__, __LINE__, __func__); \
|
||||
printf("%s() - \033[0;31m", __func__); \
|
||||
printf(__VA_ARGS__); \
|
||||
printf("\033[0m"); \
|
||||
} while (0)
|
||||
#else
|
||||
#define debug_trace(...) { }
|
||||
#endif
|
||||
|
||||
#define LIBINPUT_EXPORT __attribute__ ((visibility("default")))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue