libxl_json: fix build with DEBUG_ANSWER

Also replace LIBXL__LOG_DEBUG by XTL_DEBUG, because it's shorter and
more often used in libxl.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
This commit is contained in:
Anthony PERARD authored and Wei Liu committed 2018-07-30 14:46:32 +01:00
1 parent 0c04dec663
commit 22ef662c7a
1 file changed
+2 -2
+2 -2
View File
@@ -59,8 +59,8 @@ struct libxl__yajl_ctx {
const unsigned char *buf = NULL; \
size_t len = 0; \
yajl_gen_get_buf((yajl_ctx)->g, &buf, &len); \
LIBXL__LOG(libxl__gc_owner((yajl_ctx)->gc), LIBXL__LOG_DEBUG,
"response:\n", buf); \
LIBXL__LOG(libxl__gc_owner((yajl_ctx)->gc), XTL_DEBUG, \
"response: %s\n", buf); \
yajl_gen_free((yajl_ctx)->g); \
(yajl_ctx)->g = NULL; \
} while (0)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.