summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/cdrom.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-08-23 07:56:06 +0000
committerjkh <jkh@FreeBSD.org>1996-08-23 07:56:06 +0000
commitd3739879c900835e0dc24200f02147d90e6a04ef (patch)
tree69af8b5de1d6b46ca3b0dfb634ea459085641164 /usr.sbin/sysinstall/cdrom.c
parent165e9df2a3701ed0e39568d23c2aee30548143d0 (diff)
downloadFreeBSD-src-d3739879c900835e0dc24200f02147d90e6a04ef.zip
FreeBSD-src-d3739879c900835e0dc24200f02147d90e6a04ef.tar.gz
Conditionalize some annoying debug statements, update the docs.
Diffstat (limited to 'usr.sbin/sysinstall/cdrom.c')
-rw-r--r--usr.sbin/sysinstall/cdrom.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/sysinstall/cdrom.c b/usr.sbin/sysinstall/cdrom.c
index c3a6d29..1e68ba1 100644
--- a/usr.sbin/sysinstall/cdrom.c
+++ b/usr.sbin/sysinstall/cdrom.c
@@ -4,7 +4,7 @@
* This is probably the last attempt in the `sysinstall' line, the next
* generation being slated to essentially a complete rewrite.
*
- * $Id: cdrom.c,v 1.20 1996/07/13 05:48:44 jkh Exp $
+ * $Id: cdrom.c,v 1.21 1996/07/16 17:11:38 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -124,7 +124,8 @@ mediaGetCDROM(Device *dev, char *file, Boolean probe)
{
char buf[PATH_MAX];
- msgDebug("Request for %s from CDROM\n", file);
+ if (isDebug())
+ msgDebug("Request for %s from CDROM\n", file);
snprintf(buf, PATH_MAX, "/cdrom/%s", file);
if (file_readable(buf))
return open(buf, O_RDONLY);
OpenPOWER on IntegriCloud