libxl_json: fix build with DEBUG_ANSWER
authorAnthony PERARD <anthony.perard@citrix.com>
Fri, 27 Jul 2018 14:05:46 +0000 (15:05 +0100)
committerWei Liu <wei.liu2@citrix.com>
Mon, 30 Jul 2018 13:46:32 +0000 (14:46 +0100)
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>
tools/libxl/libxl_json.c

index 0823b8cfd25cf501ffad6a21ce30cf253257be5f..dc93a88ef10dc0ce0ec8bdfd0225a9bb0bdcaada 100644 (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)