Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/sbin/dump Pull up revision 1.23 (requested by he):



details:   https://anonhg.NetBSD.org/src/rev/bd57c67af1b8
branches:  netbsd-1-4
changeset: 471009:bd57c67af1b8
user:      he <he%NetBSD.org@localhost>
date:      Wed Oct 11 20:26:33 2000 +0000

description:
Pull up revision 1.23 (requested by he):
  Format string cleanup.

diffstat:

 sbin/dump/tape.c |  13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diffs (34 lines):

diff -r afe0cb8275d0 -r bd57c67af1b8 sbin/dump/tape.c
--- a/sbin/dump/tape.c  Wed Oct 11 19:54:11 2000 +0000
+++ b/sbin/dump/tape.c  Wed Oct 11 20:26:33 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tape.c,v 1.18.2.1 2000/10/11 18:39:57 he Exp $ */
+/*     $NetBSD: tape.c,v 1.18.2.2 2000/10/11 20:26:33 he Exp $ */
 
 /*-
  * Copyright (c) 1980, 1991, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)tape.c     8.4 (Berkeley) 5/1/95";
 #else
-__RCSID("$NetBSD: tape.c,v 1.18.2.1 2000/10/11 18:39:57 he Exp $");
+__RCSID("$NetBSD: tape.c,v 1.18.2.2 2000/10/11 20:26:33 he Exp $");
 #endif
 #endif /* not lint */
 
@@ -263,10 +263,11 @@
        blocks = iswap32(spcl.c_tapea) - tapea_volume;
        msg("Volume %d completed at: %s", tapeno, ctime(&tnow));
        if (ttaken > 0) {
-               msg("Volume %d took %ld:%02ld:%02ld\n", tapeno,
-                   ttaken / 3600, (ttaken % 3600) / 60, ttaken % 60); 
-               msg("Volume %d transfer rate: %ld KB/s\n", tapeno,
-                   blocks / ttaken);
+               msg("Volume %d took %d:%02d:%02d\n", tapeno,
+                   (int) (ttaken / 3600), (int) ((ttaken % 3600) / 60),
+                   (int) (ttaken % 60)); 
+               msg("Volume %d transfer rate: %d KB/s\n", tapeno,
+                   (int) (blocks / ttaken));
                xferrate += blocks / ttaken;
        }
        return(tnow);



Home | Main Index | Thread Index | Old Index