| 21 | #include <wire/wire_sync.h> |
| 22 | |
| 23 | static void json_add_ptr(struct json_stream *response, const char *name, |
| 24 | const void *ptr) |
| 25 | { |
| 26 | char ptrstr[STR_MAX_CHARS(void *)]; |
| 27 | snprintf(ptrstr, sizeof(ptrstr), "%p", ptr); |
| 28 | json_add_string(response, name, ptrstr); |
| 29 | } |
| 30 | |
| 31 | static size_t add_memdump(struct json_stream *response, |
| 32 | const char *fieldname, const tal_t *root, |
no test coverage detected