X-Git-Url: http://git.archive.openwrt.org/?p=project%2Flibubox.git;a=blobdiff_plain;f=examples%2Fjson_script-example.c;h=4d252a9a6bd2c4fe8aab657956de356ed65fda37;hp=e3305ded72d2d513c6bcd9c1cb6521da7d9644f3;hb=ace64897d47b9bc7af277d8a3f8a0ff67976cba8;hpb=fecaf2f5f66f8cb5598e55d493e4721554c5dcd5 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 *