more debuggin

This commit is contained in:
Steffen Vogel 2016-10-26 17:45:07 -04:00
parent 6e70e34d92
commit 0eb03a153b

View file

@ -51,6 +51,7 @@ static size_t json_parse_callback(void *contents, size_t size, size_t nmemb, voi
if (jtok->err == json_tokener_continue) {
#ifdef DEBUG
printf("got chunk: %zu * %zu = %zu bytes\r\n", size, nmemb, realsize);
printf(" %.*s\r\n", realsize, (char *) contents);
#endif
jobj = json_tokener_parse_ex(jtok, (char *) contents, realsize);