#include <stdio.h>
+#include <inttypes.h>
#include "blobmsg.h"
#include "blobmsg_json.h"
int type = blobmsg_type(data);
switch(type) {
case BLOBMSG_TYPE_STRING:
- indent_printf(indent, "%s\n", blobmsg_data(data));
+ indent_printf(indent, "%s\n", blobmsg_get_string(data));
break;
case BLOBMSG_TYPE_INT8:
indent_printf(indent, "%d\n", blobmsg_get_u8(data));