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-da7b82981b3c5acf28024a5b61c954b99ddc590f.tar.gz |
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 # Leave this set to `false' for production use. # eg: `make DODEBUG=true tests' # Do not enable this for production builds... -DODEBUG = false +DODEBUG = true # This enables compiling with dmalloc ( http://dmalloc.com/ ) # 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) snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), "%02d:%02d ETA", i / 60, i % 60); } - write(fileno(stdout), buf, strlen(buf)); + write(fileno(stderr), buf, strlen(buf)); if (flag == -1) { struct sigaction sa; @@ -475,7 +475,7 @@ progressmeter(int flag) * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: wget.c,v 1.8 2000/12/07 03:53:47 tausq Exp $ + * $Id: wget.c,v 1.9 2000/12/07 03:55:35 tausq Exp $ */ @@ -424,7 +424,7 @@ progressmeter(int flag) snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), "%02d:%02d ETA", i / 60, i % 60); } - write(fileno(stdout), buf, strlen(buf)); + write(fileno(stderr), buf, strlen(buf)); if (flag == -1) { struct sigaction sa; @@ -475,7 +475,7 @@ progressmeter(int flag) * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: wget.c,v 1.8 2000/12/07 03:53:47 tausq Exp $ + * $Id: wget.c,v 1.9 2000/12/07 03:55:35 tausq Exp $ */ |