diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 2000-02-18 03:06:43 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 2000-02-18 03:06:43 +0000 |
commit | 3925bc5d501e99461cb8275f2653bf3407fcb204 (patch) | |
tree | ad48a894f93b5002be8ab33323b5ceabb6e34239 /lib | |
parent | 77854e2013a89c4e56ed0cb405e6b49df7d04ed0 (diff) | |
download | src-3925bc5d501e99461cb8275f2653bf3407fcb204.tar.gz src-3925bc5d501e99461cb8275f2653bf3407fcb204.zip |
Hide more debugging behind isDebug(); what's currently
spewing out will only alarm people.
Notes
Notes:
svn path=/head/; revision=57306
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libdisk/create_chunk.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libdisk/create_chunk.c b/lib/libdisk/create_chunk.c index 8a851f04ecc1..8a58e0e678c5 100644 --- a/lib/libdisk/create_chunk.c +++ b/lib/libdisk/create_chunk.c @@ -335,13 +335,15 @@ MakeDev(struct chunk *c1, const char *path) if (slice > 32) return 0; if ((pwd = getpwnam("root")) == NULL) { - msgDebug("MakeDev: Unable to lookup user \"root\".\n"); + if (isDebug()) + msgDebug("MakeDev: Unable to lookup user \"root\", using 0.\n"); owner = 0; } else { owner = pwd->pw_uid; } if ((grp = getgrnam("operator")) == NULL) { - msgDebug("MakeDev: Unable to lookup group \"operator\".\n"); + if (isDebug()) + msgDebug("MakeDev: Unable to lookup group \"operator\", using 5.\n"); group = 5; } else { group = grp->gr_gid; |