projects
/
project
/
usteer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e2538d
)
ubus: display script data when dumping node info
author
Felix Fietkau
<nbd@nbd.name>
Mon, 5 Jul 2021 13:51:10 +0000
(15:51 +0200)
committer
Felix Fietkau
<nbd@nbd.name>
Tue, 6 Jul 2021 09:10:47 +0000
(11:10 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
ubus.c
patch
|
blob
|
history
diff --git
a/ubus.c
b/ubus.c
index ef448917de2847078f3cab5f6dd6377bf60d2d71..8c6711a73bd72f8353411f8c4610e638028edd2d 100644
(file)
--- a/
ubus.c
+++ b/
ubus.c
@@
-281,6
+281,11
@@
usteer_dump_node_info(struct usteer_node *node)
blobmsg_add_field(&b, BLOBMSG_TYPE_ARRAY, "rrm_nr",
blobmsg_data(node->rrm_nr),
blobmsg_data_len(node->rrm_nr));
+ if (node->script_data)
+ blobmsg_add_field(&b, BLOBMSG_TYPE_TABLE, "script_data",
+ blob_data(node->script_data),
+ blob_len(node->script_data));
+
blobmsg_close_table(&b, c);
}