diff options
author | jkh <jkh@FreeBSD.org> | 2000-02-18 03:06:43 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 2000-02-18 03:06:43 +0000 |
commit | f657eab6de1faa34e386ced8a2fa71cf24000363 (patch) | |
tree | e3a85e731df177628c4a21d830c2e1a1fc5e02f2 /lib/libdisk | |
parent | c7531fe35c741479493a19138f321bd2e5c50f65 (diff) | |
download | FreeBSD-src-f657eab6de1faa34e386ced8a2fa71cf24000363.zip FreeBSD-src-f657eab6de1faa34e386ced8a2fa71cf24000363.tar.gz |
Hide more debugging behind isDebug(); what's currently
spewing out will only alarm people.
Diffstat (limited to 'lib/libdisk')
-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 8a851f0..8a58e0e 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; |