mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-16 18:46:54 +00:00
DEBUG: opentracing: display the contents of the err variable after setting
A display of the contents of the err variable has been added to the FLT_OT_ERR() macro, once it has been set. This patch must be backported as far as 2.4.
This commit is contained in:
parent
854384f400
commit
6a1dfdde67
@ -73,10 +73,13 @@
|
|||||||
char *p = b[__idx]; \
|
char *p = b[__idx]; \
|
||||||
__idx = (__idx + 1) % (m)
|
__idx = (__idx + 1) % (m)
|
||||||
|
|
||||||
#define FLT_OT_ERR(f, ...) \
|
#define FLT_OT_ERR(f, ...) \
|
||||||
do { \
|
do { \
|
||||||
if ((err != NULL) && (*err == NULL)) \
|
if ((err != NULL) && (*err == NULL)) { \
|
||||||
(void)memprintf(err, f, ##__VA_ARGS__); \
|
(void)memprintf(err, f, ##__VA_ARGS__); \
|
||||||
|
\
|
||||||
|
FLT_OT_DBG(3, "%d err: '%s'", __LINE__, *err); \
|
||||||
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
#define FLT_OT_ERR_APPEND(f, ...) \
|
#define FLT_OT_ERR_APPEND(f, ...) \
|
||||||
do { \
|
do { \
|
||||||
|
Loading…
Reference in New Issue
Block a user