diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-01-18 00:18:39 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-01-18 00:18:39 +0000 |
commit | d73db8a32b42008714af861d1134c52d08fe9850 (patch) | |
tree | e42d0f1a43c63104c3df9b935077e39b4acb8b3a | |
parent | 7f233cf75d308fcaec631d8b340057b2ee5482c1 (diff) |
crank "K to go" field to 8 digits; lukem@netbsd.org
-rw-r--r-- | sbin/savecore/savecore.c | 6 | ||||
-rw-r--r-- | sbin/savecore/savecore_old.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sbin/savecore/savecore.c b/sbin/savecore/savecore.c index 79c5788592b..afacf6d09ca 100644 --- a/sbin/savecore/savecore.c +++ b/sbin/savecore/savecore.c @@ -1,4 +1,4 @@ -/* $OpenBSD: savecore.c,v 1.22 2000/10/25 23:37:38 deraadt Exp $ */ +/* $OpenBSD: savecore.c,v 1.23 2001/01/18 00:18:38 deraadt Exp $ */ /* $NetBSD: savecore.c,v 1.26 1996/03/18 21:16:05 leo Exp $ */ /*- @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)savecore.c 8.3 (Berkeley) 1/2/94"; #else -static char rcsid[] = "$OpenBSD: savecore.c,v 1.22 2000/10/25 23:37:38 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: savecore.c,v 1.23 2001/01/18 00:18:38 deraadt Exp $"; #endif #endif /* not lint */ @@ -460,7 +460,7 @@ err1: syslog(LOG_WARNING, "%s: %s", path, strerror(errno)); syslog(LOG_NOTICE, "writing %score to %s", compress ? "compressed " : "", path); for (; dumpsize > 0; dumpsize -= nr) { - (void)printf("%6dK\r", dumpsize / 1024); + (void)printf("%8dK\r", dumpsize / 1024); (void)fflush(stdout); nr = read(ifd, buf, MIN(dumpsize, sizeof(buf))); if (nr <= 0) { diff --git a/sbin/savecore/savecore_old.c b/sbin/savecore/savecore_old.c index 6a62358e0e9..3c1b7086cac 100644 --- a/sbin/savecore/savecore_old.c +++ b/sbin/savecore/savecore_old.c @@ -1,4 +1,4 @@ -/* $OpenBSD: savecore_old.c,v 1.16 2000/05/31 17:09:17 millert Exp $ */ +/* $OpenBSD: savecore_old.c,v 1.17 2001/01/18 00:18:38 deraadt Exp $ */ /* $NetBSD: savecore_old.c,v 1.1.1.1 1996/03/16 10:25:11 leo Exp $ */ /*- @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)savecore.c 8.3 (Berkeley) 1/2/94"; #else -static char rcsid[] = "$OpenBSD: savecore_old.c,v 1.16 2000/05/31 17:09:17 millert Exp $"; +static char rcsid[] = "$OpenBSD: savecore_old.c,v 1.17 2001/01/18 00:18:38 deraadt Exp $"; #endif #endif /* not lint */ @@ -445,7 +445,7 @@ err1: syslog(LOG_WARNING, "%s: %m", path); syslog(LOG_NOTICE, "writing %score to %s", compress ? "compressed " : "", path); for (; dumpsize > 0; dumpsize -= nr) { - (void)printf("%6dK\r", dumpsize / 1024); + (void)printf("%8dK\r", dumpsize / 1024); (void)fflush(stdout); nr = read(ifd, buf, MIN(dumpsize, sizeof(buf))); if (nr <= 0) { |