summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-04-13 00:48:49 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-04-13 00:48:49 +0000
commite3257453e0ffa88026e085670a61d00b6638eab4 (patch)
tree91c4bac38db4c367a6ecb99e0f4bace8f467e80a
parentd3a8754b7435212fe476701cb5846734ab6d7e8d (diff)
put "dump: filename " at the start of each ^T message...
-rw-r--r--sbin/dump/tape.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/dump/tape.c b/sbin/dump/tape.c
index 9361d203cbc..a2391e49359 100644
--- a/sbin/dump/tape.c
+++ b/sbin/dump/tape.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tape.c,v 1.24 2005/03/13 19:10:49 cloder Exp $ */
+/* $OpenBSD: tape.c,v 1.25 2006/04/13 00:48:48 deraadt Exp $ */
/* $NetBSD: tape.c,v 1.11 1997/06/05 11:13:26 lukem Exp $ */
/*-
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)tape.c 8.2 (Berkeley) 3/17/94";
#else
-static const char rcsid[] = "$OpenBSD: tape.c,v 1.24 2005/03/13 19:10:49 cloder Exp $";
+static const char rcsid[] = "$OpenBSD: tape.c,v 1.25 2006/04/13 00:48:48 deraadt Exp $";
#endif
#endif /* not lint */
@@ -272,8 +272,8 @@ statussig(int signo)
deltat = tstart_writing - tnow + (1.0 * (tnow - tstart_writing))
/ blockswritten * tapesize;
(void)snprintf(msgbuf, sizeof(msgbuf),
- "%3.2f%% done at %d KB/s, finished in %d:%02d\n",
- (blockswritten * 100.0) / tapesize,
+ "dump: %s %3.2f%% done at %d KB/s, finished in %d:%02d\n",
+ tape, (blockswritten * 100.0) / tapesize,
(spcl.c_tapea - tapea_volume) / (tnow - tstart_volume),
(int)(deltat / 3600), (int)((deltat % 3600) / 60));
write(STDERR_FILENO, msgbuf, strlen(msgbuf));