diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-09-11 19:59:33 +0400 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-09-11 19:59:33 +0400 |
commit | 460d94d6e8ef48cfad76057660cf0fa957cd0afa (patch) | |
tree | 26b3114e45d942884671fbf6a785b18964a02702 /examples | |
parent | 04f194aa8a04926fe7f2e42bbf9ba6c62d49339e (diff) |
blobmsg-example: fix length handling in dump_table() calls
Diffstat (limited to 'examples')
-rw-r--r-- | examples/blobmsg-example.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } } |