diff options
author | tausq <tausq@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-12-07 03:55:35 +0000 |
---|---|---|
committer | tausq <tausq@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-12-07 03:55:35 +0000 |
commit | 259909d4ad697b2a5e02c5ddf3368348fe291141 (patch) | |
tree | 7e042071b0fbaecaedc292539704eb741fac0f50 | |
parent | 96049f55808819c47af271304a65cbc97bd96247 (diff) | |
download | busybox-w32-259909d4ad697b2a5e02c5ddf3368348fe291141.tar.gz busybox-w32-259909d4ad697b2a5e02c5ddf3368348fe291141.tar.bz2 busybox-w32-259909d4ad697b2a5e02c5ddf3368348fe291141.zip |
Write progress meter to stderr instead of stdout
git-svn-id: svn://busybox.net/trunk/busybox@1394 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | networking/wget.c | 4 | ||||
-rw-r--r-- | wget.c | 4 |
3 files changed, 5 insertions, 5 deletions
@@ -35,7 +35,7 @@ DOSTATIC = false | |||
35 | # Leave this set to `false' for production use. | 35 | # Leave this set to `false' for production use. |
36 | # eg: `make DODEBUG=true tests' | 36 | # eg: `make DODEBUG=true tests' |
37 | # Do not enable this for production builds... | 37 | # Do not enable this for production builds... |
38 | DODEBUG = false | 38 | DODEBUG = true |
39 | 39 | ||
40 | # This enables compiling with dmalloc ( http://dmalloc.com/ ) | 40 | # This enables compiling with dmalloc ( http://dmalloc.com/ ) |
41 | # which is an excellent public domain mem leak and malloc problem | 41 | # which is an excellent public domain mem leak and malloc problem |
diff --git a/networking/wget.c b/networking/wget.c index 4a5934883..b43bbad62 100644 --- a/networking/wget.c +++ b/networking/wget.c | |||
@@ -424,7 +424,7 @@ progressmeter(int flag) | |||
424 | snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), | 424 | snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), |
425 | "%02d:%02d ETA", i / 60, i % 60); | 425 | "%02d:%02d ETA", i / 60, i % 60); |
426 | } | 426 | } |
427 | write(fileno(stdout), buf, strlen(buf)); | 427 | write(fileno(stderr), buf, strlen(buf)); |
428 | 428 | ||
429 | if (flag == -1) { | 429 | if (flag == -1) { |
430 | struct sigaction sa; | 430 | struct sigaction sa; |
@@ -475,7 +475,7 @@ progressmeter(int flag) | |||
475 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 475 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
476 | * SUCH DAMAGE. | 476 | * SUCH DAMAGE. |
477 | * | 477 | * |
478 | * $Id: wget.c,v 1.8 2000/12/07 03:53:47 tausq Exp $ | 478 | * $Id: wget.c,v 1.9 2000/12/07 03:55:35 tausq Exp $ |
479 | */ | 479 | */ |
480 | 480 | ||
481 | 481 | ||
@@ -424,7 +424,7 @@ progressmeter(int flag) | |||
424 | snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), | 424 | snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), |
425 | "%02d:%02d ETA", i / 60, i % 60); | 425 | "%02d:%02d ETA", i / 60, i % 60); |
426 | } | 426 | } |
427 | write(fileno(stdout), buf, strlen(buf)); | 427 | write(fileno(stderr), buf, strlen(buf)); |
428 | 428 | ||
429 | if (flag == -1) { | 429 | if (flag == -1) { |
430 | struct sigaction sa; | 430 | struct sigaction sa; |
@@ -475,7 +475,7 @@ progressmeter(int flag) | |||
475 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 475 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
476 | * SUCH DAMAGE. | 476 | * SUCH DAMAGE. |
477 | * | 477 | * |
478 | * $Id: wget.c,v 1.8 2000/12/07 03:53:47 tausq Exp $ | 478 | * $Id: wget.c,v 1.9 2000/12/07 03:55:35 tausq Exp $ |
479 | */ | 479 | */ |
480 | 480 | ||
481 | 481 | ||