diff options
author | Miles Bader <miles@gnu.org> | 1996-05-02 01:03:18 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-05-02 01:03:18 +0000 |
commit | e33204cfd54c211071b1c89c698439a4c4d18322 (patch) | |
tree | d5c33b275aed06c24353a250d582181a8da53d62 /ufs-fsck | |
parent | a43cac3929ad4c536faf23ead915c650f012a236 (diff) |
(pass1b): Use new printing functions.
Diffstat (limited to 'ufs-fsck')
-rw-r--r-- | ufs-fsck/pass1b.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ufs-fsck/pass1b.c b/ufs-fsck/pass1b.c index 50973eae..190ae9dc 100644 --- a/ufs-fsck/pass1b.c +++ b/ufs-fsck/pass1b.c @@ -1,5 +1,5 @@ /* Pass 1b of fsck -- scan inodes for references to duplicate blocks - Copyright (C) 1994 Free Software Foundation, Inc. + Copyright (C) 1994, 1996 Free Software Foundation, Inc. Written by Michael I. Bushnell. This file is part of the GNU Hurd. @@ -48,10 +48,8 @@ pass1b () { if (dlp->dup == bno) { - if (!dupblk) - printf ("I=%d HAD DUPLICATE BLOCKS\n", number); dupblk++; - printf ("DUPLICATE BLOCK %ld\n", bno); + warning (0, "DUPLICATE BLOCK %ld\n", bno); dlp->dup = duphead->dup; duphead->dup = bno; duphead = duphead->next; @@ -78,7 +76,7 @@ pass1b () allblock_iterate (dp, checkblock); if (dupblk) { - printf ("I=%d has %d DUPLICATE BLOCKS\n", number, dupblk); + problem (1, "I=%d HAS %d DUPLICATE BLOCKS", number, dupblk); if (reply ("CLEAR")) { clear_inode (number, dp); |