Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2016-02-17 10:45:06 +0300
committerFelix Fietkau <nbd@openwrt.org>2016-02-20 15:36:08 +0300
commit5326ce1046425154ab715387949728cfb09f4083 (patch)
treed3865a63c3d78c07b93f2b8a556bdac5b5e735e0 /examples/json_script-example.c
parent02db6d71b67d9efe33292fbf7f92da888aaf879f (diff)
examples: add shunit2 tests for json_script
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'examples/json_script-example.c')
-rw-r--r--examples/json_script-example.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/json_script-example.c b/examples/json_script-example.c
index e3305de..4d252a9 100644
--- a/examples/json_script-example.c
+++ b/examples/json_script-example.c
@@ -16,10 +16,10 @@ static void handle_command(struct json_script_ctx *ctx, const char *name,
struct blob_attr *cur;
int rem;
- fprintf(stderr, "Command: %s", name);
+ fprintf(stdout, "%s", name);
blobmsg_for_each_attr(cur, data, rem)
- fprintf(stderr, " %s", (char *) blobmsg_data(cur));
- fprintf(stderr, "\n");
+ fprintf(stdout, " %s", (char *) blobmsg_data(cur));
+ fprintf(stdout, "\n");
}
static struct json_script_file *