Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/miscfs/kernfs clean up some KERNFS_DIAGNOSTIC calls.
details: https://anonhg.NetBSD.org/src/rev/ebf4a5622049
branches: trunk
changeset: 503269:ebf4a5622049
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Feb 04 10:20:00 2001 +0000
description:
clean up some KERNFS_DIAGNOSTIC calls.
diffstat:
sys/miscfs/kernfs/kernfs_vfsops.c | 9 +++++++--
sys/miscfs/kernfs/kernfs_vnops.c | 4 ++--
2 files changed, 9 insertions(+), 4 deletions(-)
diffs (42 lines):
diff -r 55e2b446f01c -r ebf4a5622049 sys/miscfs/kernfs/kernfs_vfsops.c
--- a/sys/miscfs/kernfs/kernfs_vfsops.c Sun Feb 04 10:16:43 2001 +0000
+++ b/sys/miscfs/kernfs/kernfs_vfsops.c Sun Feb 04 10:20:00 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kernfs_vfsops.c,v 1.38 2001/01/22 12:17:38 jdolecek Exp $ */
+/* $NetBSD: kernfs_vfsops.c,v 1.39 2001/02/04 10:20:00 mrg Exp $ */
/*
* Copyright (c) 1992, 1993, 1995
@@ -107,8 +107,13 @@
return;
for (cmaj = 0; cmaj < nchrdev; cmaj++) {
rrootdev = makedev(cmaj, minor(rootdev));
- if (chrtoblk(rrootdev) == rootdev)
+ if (chrtoblk(rrootdev) == rootdev) {
+#ifdef KERNFS_DIAGNOSTIC
+ printf("kernfs_mount: rootdev = %u.%u; rrootdev = %u.%u\n",
+ major(rootdev), minor(rootdev), major(rrootdev), minor(rrootdev));
+#endif
return;
+ }
}
rrootdev = NODEV;
printf("kernfs_get_rrootdev: no raw root device\n");
diff -r 55e2b446f01c -r ebf4a5622049 sys/miscfs/kernfs/kernfs_vnops.c
--- a/sys/miscfs/kernfs/kernfs_vnops.c Sun Feb 04 10:16:43 2001 +0000
+++ b/sys/miscfs/kernfs/kernfs_vnops.c Sun Feb 04 10:20:00 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kernfs_vnops.c,v 1.73 2001/01/27 12:28:35 jdolecek Exp $ */
+/* $NetBSD: kernfs_vnops.c,v 1.74 2001/02/04 10:20:00 mrg Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -645,7 +645,7 @@
for (kt = &kern_targets[i];
uio->uio_resid >= UIO_MX && i < nkern_targets; kt++, i++) {
#ifdef KERNFS_DIAGNOSTIC
- printf("kernfs_readdir: i = %d\n", i);
+ printf("kernfs_readdir: i = %d\n", (int)i);
#endif
if (kt->kt_tag == KTT_DEVICE) {
Home |
Main Index |
Thread Index |
Old Index