libinput-01-rename-log_msg-to-libinput_log_msg.patch 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. From 89a3ae2de21e528b8feb80dbea3928d43982d3be Mon Sep 17 00:00:00 2001
  2. From: Romain Naour <romain.naour@openwide.fr>
  3. Date: Thu, 21 Aug 2014 18:18:16 +0200
  4. Subject: [PATCH 1/1] rename log_msg to libinput_log_msg
  5. This fixes a conflict between libevdev and libinput on the definition
  6. of the log_msg() symbol.
  7. http://autobuild.buildroot.net/results/c13/c133b7c706ee31302125df8ca94f4d0f0152c6c6/build-end.log
  8. Signed-off-by: Romain Naour <romain.naour@openwide.fr>
  9. ---
  10. src/libinput-private.h | 14 +++++++-------
  11. src/libinput.c | 2 +-
  12. 2 files changed, 8 insertions(+), 8 deletions(-)
  13. diff --git a/src/libinput-private.h b/src/libinput-private.h
  14. index f9d2f87..ac1e1c4 100644
  15. --- a/src/libinput-private.h
  16. +++ b/src/libinput-private.h
  17. @@ -81,15 +81,15 @@ typedef void (*libinput_source_dispatch_t)(void *data);
  18. struct libinput_source;
  19. -#define log_debug(...) log_msg(LIBINPUT_LOG_PRIORITY_DEBUG, __VA_ARGS__)
  20. -#define log_info(...) log_msg(LIBINPUT_LOG_PRIORITY_INFO, __VA_ARGS__)
  21. -#define log_error(...) log_msg(LIBINPUT_LOG_PRIORITY_ERROR, __VA_ARGS__)
  22. -#define log_bug_kernel(...) log_msg(LIBINPUT_LOG_PRIORITY_ERROR, "kernel bug: " __VA_ARGS__)
  23. -#define log_bug_libinput(...) log_msg(LIBINPUT_LOG_PRIORITY_ERROR, "libinput bug: " __VA_ARGS__);
  24. -#define log_bug_client(...) log_msg(LIBINPUT_LOG_PRIORITY_ERROR, "client bug: " __VA_ARGS__);
  25. +#define log_debug(...) libinput_log_msg(LIBINPUT_LOG_PRIORITY_DEBUG, __VA_ARGS__)
  26. +#define log_info(...) libinput_log_msg(LIBINPUT_LOG_PRIORITY_INFO, __VA_ARGS__)
  27. +#define log_error(...) libinput_log_msg(LIBINPUT_LOG_PRIORITY_ERROR, __VA_ARGS__)
  28. +#define log_bug_kernel(...) libinput_log_msg(LIBINPUT_LOG_PRIORITY_ERROR, "kernel bug: " __VA_ARGS__)
  29. +#define log_bug_libinput(...) libinput_log_msg(LIBINPUT_LOG_PRIORITY_ERROR, "libinput bug: " __VA_ARGS__);
  30. +#define log_bug_client(...) libinput_log_msg(LIBINPUT_LOG_PRIORITY_ERROR, "client bug: " __VA_ARGS__);
  31. void
  32. -log_msg(enum libinput_log_priority priority, const char *format, ...);
  33. +libinput_log_msg(enum libinput_log_priority priority, const char *format, ...);
  34. int
  35. libinput_init(struct libinput *libinput,
  36. diff --git a/src/libinput.c b/src/libinput.c
  37. index eec9efb..4e3f6fa 100644
  38. --- a/src/libinput.c
  39. +++ b/src/libinput.c
  40. @@ -110,7 +110,7 @@ static struct log_data log_data = {
  41. };
  42. void
  43. -log_msg(enum libinput_log_priority priority, const char *format, ...)
  44. +libinput_log_msg(enum libinput_log_priority priority, const char *format, ...)
  45. {
  46. va_list args;
  47. --
  48. 1.9.3