From b41ff1d63300d65ddbd251f008bb5bf890a78676 Mon Sep 17 00:00:00 2001 From: Taekyun Kim Date: Thu, 13 Aug 2015 14:04:19 +0900 Subject: [PATCH] pepper: Add PEPPER_TRACE macro for debugging purpose Change-Id: Ie43a4a777c060116732b8958b6677a82cb6b5b96 --- src/lib/pepper/input.c | 3 --- src/lib/pepper/pepper-utils.h | 5 +++++ src/lib/x11/x11-internal.h | 2 -- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/pepper/input.c b/src/lib/pepper/input.c index 319b29f..b3c8d46 100644 --- a/src/lib/pepper/input.c +++ b/src/lib/pepper/input.c @@ -1,8 +1,5 @@ #include "pepper-internal.h" -#undef PEPPER_TRACE -#define PEPPER_TRACE(...) - typedef struct pepper_input_device_entry pepper_input_device_entry_t; struct pepper_input_device_entry diff --git a/src/lib/pepper/pepper-utils.h b/src/lib/pepper/pepper-utils.h index ff96fd6..d3a5e32 100644 --- a/src/lib/pepper/pepper-utils.h +++ b/src/lib/pepper/pepper-utils.h @@ -305,6 +305,11 @@ pepper_log(const char* domain, int level, const char *format, ...); pepper_log("ERROR", 0, "%s:%s: "fmt, __FILE__, __FUNCTION__, ##__VA_ARGS__); \ } while (0) +#define PEPPER_TRACE(fmt, ...) \ + do { \ + pepper_log("DEBUG", 0, fmt, ##__VA_ARGS__); \ + } while (0) + PEPPER_API void pepper_assert(pepper_bool_t exp); diff --git a/src/lib/x11/x11-internal.h b/src/lib/x11/x11-internal.h index 47f48dc..9a45172 100644 --- a/src/lib/x11/x11-internal.h +++ b/src/lib/x11/x11-internal.h @@ -16,8 +16,6 @@ #define X11_BACKEND_INPUT_ID 0x12345678 -#define PEPPER_TRACE(x) - typedef struct x11_output x11_output_t; typedef struct x11_cursor x11_cursor_t; typedef struct x11_seat x11_seat_t; -- 2.7.4