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:
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 *