blobmsg-example: fix length handling in dump_table() calls
This commit is contained in:
parent
04f194aa8a
commit
460d94d6e8
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue