Only print "XXX (un)registered" message if bootverbose.

This commit is contained in:
des 2001-10-02 22:21:07 +00:00
parent eaffec188f
commit 6f7f1280f6

View File

@ -122,7 +122,8 @@ pfs_init(struct pfs_info *pi, struct vfsconf *vfc)
{
mtx_init(&pi->pi_mutex, "pseudofs", MTX_DEF);
pfs_fileno_init(pi);
printf("%s registered\n", pi->pi_name);
if (bootverbose)
printf("%s registered\n", pi->pi_name);
return (0);
}
@ -134,7 +135,8 @@ pfs_uninit(struct pfs_info *pi, struct vfsconf *vfc)
{
pfs_fileno_uninit(pi);
mtx_destroy(&pi->pi_mutex);
printf("%s unregistered\n", pi->pi_name);
if (bootverbose)
printf("%s unregistered\n", pi->pi_name);
return (0);
}