Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Adjust unmount prints to avoid "boothowto = AB_VERB...



details:   https://anonhg.NetBSD.org/src/rev/a3f66fd77c8a
branches:  trunk
changeset: 783306:a3f66fd77c8a
user:      pooka <pooka%NetBSD.org@localhost>
date:      Fri Dec 14 18:39:48 2012 +0000

description:
Adjust unmount prints to avoid "boothowto = AB_VERBOSE" from being
cluttered like this:

unmounting file systems...unmounted kernfs on /kern type kernfs
unmounted etcetc.
 done

tested: ~AB_VERBOSE, AB_VERBOSE, -DDEBUG

diffstat:

 sys/kern/vfs_mount.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 5c0183b1f7b9 -r a3f66fd77c8a sys/kern/vfs_mount.c
--- a/sys/kern/vfs_mount.c      Fri Dec 14 16:37:55 2012 +0000
+++ b/sys/kern/vfs_mount.c      Fri Dec 14 18:39:48 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_mount.c,v 1.15 2012/10/27 17:18:39 chs Exp $       */
+/*     $NetBSD: vfs_mount.c,v 1.16 2012/12/14 18:39:48 pooka Exp $     */
 
 /*-
  * Copyright (c) 1997-2011 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_mount.c,v 1.15 2012/10/27 17:18:39 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_mount.c,v 1.16 2012/12/14 18:39:48 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -873,7 +873,7 @@
 vfs_unmountall(struct lwp *l)
 {
 
-       printf("unmounting file systems...");
+       printf("unmounting file systems...\n");
        return vfs_unmountall1(l, true, true);
 }
 
@@ -904,7 +904,7 @@
        }
 
 #ifdef DEBUG
-       printf("\nforcefully unmounting %s (%s)...",
+       printf("forcefully unmounting %s (%s)...\n",
            nmp->mnt_stat.f_mntonname, nmp->mnt_stat.f_mntfromname);
 #endif
        atomic_inc_uint(&nmp->mnt_refcnt);
@@ -935,7 +935,7 @@
             mp = nmp) {
                nmp = CIRCLEQ_PREV(mp, mnt_list);
 #ifdef DEBUG
-               printf("\nunmounting %p %s (%s)...",
+               printf("unmounting %p %s (%s)...\n",
                    (void *)mp, mp->mnt_stat.f_mntonname,
                    mp->mnt_stat.f_mntfromname);
 #endif
@@ -953,7 +953,7 @@
                }
        }
        if (verbose) {
-               printf(" done\n");
+               printf("unmounting done\n");
        }
        if (any_error && verbose) {
                printf("WARNING: some file systems would not unmount\n");



Home | Main Index | Thread Index | Old Index