From 003011935054d0c0fc413d0a7892f490f3a284d6 Mon Sep 17 00:00:00 2001 From: PolynomialDivision Date: Sun, 16 Jul 2017 20:23:35 +0200 Subject: [PATCH] Print array in callback --- src/utils/ubus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/ubus.c b/src/utils/ubus.c index 469f1f8..cb33a74 100644 --- a/src/utils/ubus.c +++ b/src/utils/ubus.c @@ -340,6 +340,7 @@ static void ubus_get_clients_cb(struct ubus_request *req, int type, struct blob_ str = blobmsg_format_json_indent(msg, true, -1); printf("%s\n", str); + print_client_array(); free(str); } @@ -350,6 +351,5 @@ static int ubus_get_clients() { return ret; int timeout = 1; int ubus_shit = ubus_invoke(ctx, id, "get_clients", NULL, ubus_get_clients_cb, NULL, timeout * 1000); - printf("Ubus Shit: %d", ubus_shit); return ubus_shit; } \ No newline at end of file