diff options
Diffstat (limited to 'sys/fs/devfs/devfs_vnops.c')
-rw-r--r-- | sys/fs/devfs/devfs_vnops.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c index 80dfad8..fc0e392 100644 --- a/sys/fs/devfs/devfs_vnops.c +++ b/sys/fs/devfs/devfs_vnops.c @@ -1,4 +1,3 @@ -#define DEBUG 1 /* * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. @@ -35,6 +34,9 @@ * $FreeBSD$ */ +#include <opt_devfs.h> +#ifndef NODEVFS + #include <sys/param.h> #include <sys/systm.h> #include <sys/conf.h> @@ -193,10 +195,6 @@ devfs_getattr(ap) vap->va_nlink = de->de_links; vap->va_fileid = de->de_inode; -#ifdef DEBUG - if (error) - printf("devfs_getattr: return error %d\n", error); -#endif return (error); } @@ -711,3 +709,4 @@ static struct vnodeopv_desc devfs_specop_opv_desc = { &devfs_specop_p, devfs_specop_entries }; VNODEOP_SET(devfs_specop_opv_desc); +#endif |