From 22ef662c7a4c812bbf9132d004cbf5ccf0bfdd5f Mon Sep 17 00:00:00 2001 From: Anthony PERARD Date: Fri, 27 Jul 2018 15:05:46 +0100 Subject: [PATCH] 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 Acked-by: Ian Jackson --- tools/libxl/libxl_json.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/libxl/libxl_json.c b/tools/libxl/libxl_json.c index 0823b8cfd2..dc93a88ef1 100644 --- a/tools/libxl/libxl_json.c +++ b/tools/libxl/libxl_json.c @@ -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) -- 2.30.2