diff options
author | Randolph Chung <tausq@debian.org> | 2000-12-07 03:55:35 +0000 |
---|---|---|
committer | Randolph Chung <tausq@debian.org> | 2000-12-07 03:55:35 +0000 |
commit | da7b82981b3c5acf28024a5b61c954b99ddc590f (patch) | |
tree | 7e042071b0fbaecaedc292539704eb741fac0f50 | |
parent | 02553a2a188d3fe00d2c2efe48109eb3d4aae4b3 (diff) | |
download | busybox-w32-da7b82981b3c5acf28024a5b61c954b99ddc590f.tar.gz busybox-w32-da7b82981b3c5acf28024a5b61c954b99ddc590f.tar.bz2 busybox-w32-da7b82981b3c5acf28024a5b61c954b99ddc590f.zip |
Write progress meter to stderr instead of stdout
-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 | ||