libxl_json: fix JSON parser debug code
authorWei Liu <wei.liu2@citrix.com>
Thu, 10 Apr 2014 15:26:32 +0000 (16:26 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 16 Apr 2014 16:06:41 +0000 (17:06 +0100)
commitb955e8c5b7ceab7a6dde006f50b8dc90c5decf26
tree81ccd02db19c34b5d6ac44bf31cecc40de25cdec
parent172c47d1c85ac1f54805f04dd6bcd62bb35fa3a4
libxl_json: fix JSON parser debug code

Two changes included:
1. implement DEBUG_GEN_ALLOC for YAJL2
2. use size_t for variable "len"

without these two fixes it fails to compile when DEBUG_ANSWER is
defined.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_json.c