diff options
author | Yousong Zhou <yszhou4tech@gmail.com> | 2016-02-17 10:45:06 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-02-20 15:36:08 +0300 |
commit | 5326ce1046425154ab715387949728cfb09f4083 (patch) | |
tree | d3865a63c3d78c07b93f2b8a556bdac5b5e735e0 /examples/json_script-example.c | |
parent | 02db6d71b67d9efe33292fbf7f92da888aaf879f (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.c | 6 |
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 * |