From: Felix Fietkau Date: Wed, 11 Sep 2013 15:59:33 +0000 (+0200) Subject: blobmsg-example: fix length handling in dump_table() calls X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=460d94d6e8ef48cfad76057660cf0fa957cd0afa;p=oweals%2Flibubox.git blobmsg-example: fix length handling in dump_table() calls --- diff --git a/examples/blobmsg-example.c b/examples/blobmsg-example.c index 2c2e703..5d0a8d0 100644 --- a/examples/blobmsg-example.c +++ b/examples/blobmsg-example.c @@ -95,11 +95,11 @@ static void dump_message(struct blob_buf *buf) if (tb[FOO_LIST]) { fprintf(stderr, "List: "); - dump_table(blobmsg_data(tb[FOO_LIST]), blob_len(tb[FOO_LIST]), 0, true); + dump_table(blobmsg_data(tb[FOO_LIST]), blobmsg_data_len(tb[FOO_LIST]), 0, true); } if (tb[FOO_TESTDATA]) { fprintf(stderr, "Testdata: "); - dump_table(blobmsg_data(tb[FOO_TESTDATA]), blob_len(tb[FOO_TESTDATA]), 0, false); + dump_table(blobmsg_data(tb[FOO_TESTDATA]), blobmsg_data_len(tb[FOO_TESTDATA]), 0, false); } }