blobmsg-example: use blobmsg_get_string()

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
Felix Fietkau 2014-07-03 13:50:49 +02:00
parent b538c2b20e
commit fd5b522ce6

View file

@ -34,7 +34,7 @@ static void dump_attr_data(struct blob_attr *data, int indent, int next_indent)
int type = blobmsg_type(data);
switch(type) {
case BLOBMSG_TYPE_STRING:
indent_printf(indent, "%s\n", (char *) 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));