[xen master] libxl_json: fix build with DEBUG_ANSWER

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen master] libxl_json: fix build with DEBUG_ANSWER

patchbot
commit 22ef662c7a4c812bbf9132d004cbf5ccf0bfdd5f
Author:     Anthony PERARD <[hidden email]>
AuthorDate: Fri Jul 27 15:05:46 2018 +0100
Commit:     Wei Liu <[hidden email]>
CommitDate: Mon Jul 30 14:46:32 2018 +0100

    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 <[hidden email]>
    Acked-by: Ian Jackson <[hidden email]>
---
 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)
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog