summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-05-08 23:20:12 +0200
committerFelix Fietkau <nbd@openwrt.org>2014-05-08 23:20:12 +0200
commit89206c007782709a530c46254115c371c83eaf93 (patch)
treedc46acad9bc89bcbb668318a3da0b5e3c602686a
parentc8e85b4714709aebaa055bea6cc5a26b8eda4071 (diff)
downloaduclient-89206c007782709a530c46254115c371c83eaf93.tar.gz
fetch: print the URL while connecting
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r--uclient-fetch.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/uclient-fetch.c b/uclient-fetch.c
index 733a5b9..d4db108 100644
--- a/uclient-fetch.c
+++ b/uclient-fetch.c
@@ -145,7 +145,7 @@ static void msg_connecting(struct uclient *cl)
return;
uclient_get_addr(addr, &port, &cl->remote_addr);
- fprintf(stderr, "Connecting to %s %s:%d\n", cl->url->host, addr, port);
+ fprintf(stderr, "Connecting to %s:%d\n", addr, port);
}
static void init_request(struct uclient *cl)
@@ -327,6 +327,9 @@ int main(int argc, char **argv)
auth_str = username;
}
+ if (!quiet)
+ fprintf(stderr, "Downloading '%s'\n", argv[0]);
+
cl = uclient_new(argv[0], auth_str, &cb);
if (!cl) {
fprintf(stderr, "Failed to allocate uclient context\n");