Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/sysvbfs Add function name to a few debug messages.



details:   https://anonhg.NetBSD.org/src/rev/c1ea1e73a1ea
branches:  trunk
changeset: 767259:c1ea1e73a1ea
user:      njoly <njoly%NetBSD.org@localhost>
date:      Wed Jul 13 19:51:29 2011 +0000

description:
Add function name to a few debug messages.

diffstat:

 sys/fs/sysvbfs/sysvbfs_vfsops.c |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (39 lines):

diff -r cb5d7841a7c1 -r c1ea1e73a1ea sys/fs/sysvbfs/sysvbfs_vfsops.c
--- a/sys/fs/sysvbfs/sysvbfs_vfsops.c   Wed Jul 13 15:32:57 2011 +0000
+++ b/sys/fs/sysvbfs/sysvbfs_vfsops.c   Wed Jul 13 19:51:29 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysvbfs_vfsops.c,v 1.36 2011/06/12 03:35:54 rmind Exp $        */
+/*     $NetBSD: sysvbfs_vfsops.c,v 1.37 2011/07/13 19:51:29 njoly Exp $        */
 
 /*-
  * Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysvbfs_vfsops.c,v 1.36 2011/06/12 03:35:54 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysvbfs_vfsops.c,v 1.37 2011/07/13 19:51:29 njoly Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -207,8 +207,9 @@
        mp->mnt_dev_bshift = BFS_BSHIFT;
        mp->mnt_fs_bshift = BFS_BSHIFT;
 
-       DPRINTF("fstype=%d dtype=%d bsize=%d\n", dpart.part->p_fstype,
-           dpart.disklab->d_type, dpart.disklab->d_secsize);
+       DPRINTF("%s: fstype=%d dtype=%d bsize=%d\n", __func__,
+           dpart.part->p_fstype, dpart.disklab->d_type,
+           dpart.disklab->d_secsize);
 
  out:
        if (devopen && error)
@@ -341,7 +342,7 @@
        DPRINTF("%s: i-node=%lld\n", __func__, (long long)ino);
        /* Lookup requested i-node */
        if (!bfs_inode_lookup(bfs, ino, &inode)) {
-               DPRINTF("bfs_inode_lookup failed.\n");
+               DPRINTF("%s: bfs_inode_lookup failed.\n", __func__);
                return ENOENT;
        }
 



Home | Main Index | Thread Index | Old Index