From 460d94d6e8ef48cfad76057660cf0fa957cd0afa Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 11 Sep 2013 17:59:33 +0200 Subject: [PATCH] blobmsg-example: fix length handling in dump_table() calls --- examples/blobmsg-example.c | 4 ++-- 1 file 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); } } -- 2.25.1