Commit c4cb4da3 authored by Peter Hutterer's avatar Peter Hutterer

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's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 72af32c8
......@@ -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")))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment