Source-Changes-HG archive

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

[src/trunk]: src/sbin/fsck_ffs Show pass1 SIGINFO output on stderr like other...



details:   https://anonhg.NetBSD.org/src/rev/0398a471ddc4
branches:  trunk
changeset: 783744:0398a471ddc4
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Jan 06 22:06:00 2013 +0000

description:
Show pass1 SIGINFO output on stderr like other passes, not on stdout.

diffstat:

 sbin/fsck_ffs/pass1.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 7f53bf1aaa51 -r 0398a471ddc4 sbin/fsck_ffs/pass1.c
--- a/sbin/fsck_ffs/pass1.c     Sun Jan 06 21:27:11 2013 +0000
+++ b/sbin/fsck_ffs/pass1.c     Sun Jan 06 22:06:00 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pass1.c,v 1.49 2011/08/14 12:32:01 christos Exp $      */
+/*     $NetBSD: pass1.c,v 1.50 2013/01/06 22:06:00 riastradh Exp $     */
 
 /*
  * Copyright (c) 1980, 1986, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)pass1.c    8.6 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: pass1.c,v 1.49 2011/08/14 12:32:01 christos Exp $");
+__RCSID("$NetBSD: pass1.c,v 1.50 2013/01/06 22:06:00 riastradh Exp $");
 #endif
 #endif /* not lint */
 
@@ -109,7 +109,8 @@
                else
                        inosused = sblock->fs_ipg;
                if (got_siginfo) {
-                       printf("%s: phase 1: cyl group %d of %d (%d%%)\n",
+                       fprintf(stderr,
+                           "%s: phase 1: cyl group %d of %d (%d%%)\n",
                            cdevname(), c, sblock->fs_ncg,
                            c * 100 / sblock->fs_ncg);
                        got_siginfo = 0;



Home | Main Index | Thread Index | Old Index