]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: debug: remove the TRACE() macro
authorWilly Tarreau <w@1wt.eu>
Sun, 26 May 2019 07:25:59 +0000 (09:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 26 May 2019 07:25:59 +0000 (09:25 +0200)
It has not been used for many years, is unlikely to be reused and
conflicts with the similarly named macro in flt_trace, causing warnings
at build time when including debug.h in low-level files. Let's simply
remove it.

include/common/debug.h

index 1038041b1ed19d518a3225b623065d885c6a4b72..333203dd2e2dc02c26fc55dc194ffdfcad88362e 100644 (file)
 #define BUG_ON(cond)
 #endif
 
-/* this one is provided for easy code tracing.
- * Usage: TRACE(strm||0, fmt, args...);
- *        TRACE(strm, "");
- */
-#define TRACE(strm, fmt, args...) do {                            \
-       fprintf(stderr,                                           \
-               "%d.%06d [%s:%d %s] [strm %p(%x)] " fmt "\n",      \
-               (int)now.tv_sec, (int)now.tv_usec,                \
-               __FILE__, __LINE__, __FUNCTION__,                 \
-               strm, strm?((struct stream *)strm)->uniq_id:~0U, \
-               ##args);                                           \
-        } while (0)
-
-
 struct task;
 struct buffer;
 void ha_task_dump(struct buffer *buf, const struct task *task, const char *pfx);