You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by je...@apache.org on 2020/09/30 06:22:29 UTC
[incubator-nuttx-apps] 04/04: wgetjson: Fix a super confusing
printf message
This is an automated email from the ASF dual-hosted git repository.
jerpelea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
commit 39a1950098b331c5a2c203431ffc26f276274863
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Tue Sep 29 16:40:53 2020 +0900
wgetjson: Fix a super confusing printf message
---
examples/wgetjson/wgetjson_main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/examples/wgetjson/wgetjson_main.c b/examples/wgetjson/wgetjson_main.c
index 99c2ccc..2a4bd33 100644
--- a/examples/wgetjson/wgetjson_main.c
+++ b/examples/wgetjson/wgetjson_main.c
@@ -381,11 +381,10 @@ int main(int argc, FAR char *argv[])
buffer = malloc(buffer_len);
wgetjson_json_release();
- printf("URL: %s\n", url);
-
if (is_post)
{
url = CONFIG_EXAMPLES_WGETPOST_URL;
+ printf("URL: %s\n", url);
if (is_post_multi)
{
post_buff_len = web_posts_strlen(post_multi_names,
@@ -411,6 +410,7 @@ int main(int argc, FAR char *argv[])
}
else
{
+ printf("URL: %s\n", url);
ret = wget(url, buffer, buffer_len, wget_cb , NULL);
}