From 6bcf1102df5b7def4a7ee7ec8536d5c0f53f9eb0 Mon Sep 17 00:00:00 2001 From: mrg Date: Sun, 4 Feb 2001 10:20:00 +0000 Subject: [PATCH] clean up some KERNFS_DIAGNOSTIC calls. --- sys/miscfs/kernfs/kernfs_vfsops.c | 9 +++++++-- sys/miscfs/kernfs/kernfs_vnops.c | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/sys/miscfs/kernfs/kernfs_vfsops.c b/sys/miscfs/kernfs/kernfs_vfsops.c index ba6eacbef562..99eba165cc1f 100644 --- a/sys/miscfs/kernfs/kernfs_vfsops.c +++ b/sys/miscfs/kernfs/kernfs_vfsops.c @@ -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 @@ kernfs_get_rrootdev() 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 --git a/sys/miscfs/kernfs/kernfs_vnops.c b/sys/miscfs/kernfs/kernfs_vnops.c index 35334e5615f3..af463fc9e5ac 100644 --- a/sys/miscfs/kernfs/kernfs_vnops.c +++ b/sys/miscfs/kernfs/kernfs_vnops.c @@ -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 @@ kernfs_readdir(v) 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) {