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.5 (requested by he):



details:   https://anonhg.NetBSD.org/src/rev/bb90047d6962
branches:  netbsd-1-4
changeset: 471001:bb90047d6962
user:      he <he%NetBSD.org@localhost>
date:      Wed Oct 11 18:39:32 2000 +0000

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

diffstat:

 sbin/dump/rcache.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r 12527d505084 -r bb90047d6962 sbin/dump/rcache.c
--- a/sbin/dump/rcache.c        Wed Oct 11 18:39:04 2000 +0000
+++ b/sbin/dump/rcache.c        Wed Oct 11 18:39:32 2000 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: rcache.c,v 1.1 1999/03/23 14:22:59 bouyer Exp $       */
+/*      $NetBSD: rcache.c,v 1.1.2.1 2000/10/11 18:39:32 he Exp $       */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -199,7 +199,7 @@
                        disk, blkno, size, cnt);
 err:
        if (++breaderrors > BREADEMAX) {
-               msg("More than %d block read errors from %d\n",
+               msg("More than %d block read errors from %s\n",
                        BREADEMAX, disk);
                broadcast("DUMP IS AILING!\n");
                msg("This is an unrecoverable error.\n");
@@ -222,12 +222,12 @@
                if ((cnt = read(diskfd, buf, (int)dev_bsize)) == dev_bsize)
                        continue;
                if (cnt == -1) {
-                       msg("read error from %s: %s: [sector %d]: count=%d: "
+                       msg("read error from %s: %s: [sector %d]: count=%ld: "
                            "%s\n", disk, strerror(errno), blkno, dev_bsize,
                            strerror(errno));
                        continue;
                }
-               msg("short read error from %s: [sector %d]: count=%d, got=%d\n",
+               msg("short read error from %s: [sector %d]: count=%ld, got=%d\n",
                    disk, blkno, dev_bsize, cnt);
        }
 }



Home | Main Index | Thread Index | Old Index