summaryrefslogtreecommitdiff
path: root/ufs-fsck/pass1b.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-05-02 01:03:18 +0000
committerMiles Bader <miles@gnu.org>1996-05-02 01:03:18 +0000
commit95efc55b23ad24ed9bb8631a7502b7563c39c8e1 (patch)
tree8005310542711eee16d32261665d18a8c924ff2c /ufs-fsck/pass1b.c
parent33b566ddde1ea186d337290d64f51531a04eb1ad (diff)
(pass1b): Use new printing functions.
Diffstat (limited to 'ufs-fsck/pass1b.c')
-rw-r--r--ufs-fsck/pass1b.c8
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);