summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall
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
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')
-rw-r--r--usr.sbin/sysinstall/cdrom.c5
-rw-r--r--usr.sbin/sysinstall/dos.c5
-rw-r--r--usr.sbin/sysinstall/nfs.c5
-rw-r--r--usr.sbin/sysinstall/tape.c5
-rw-r--r--usr.sbin/sysinstall/ufs.c5
5 files changed, 15 insertions, 10 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);
diff --git a/usr.sbin/sysinstall/dos.c b/usr.sbin/sysinstall/dos.c
index b1edd3d..d1aa615 100644
--- a/usr.sbin/sysinstall/dos.c
+++ b/usr.sbin/sysinstall/dos.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: dos.c,v 1.12 1996/04/28 03:26:54 jkh Exp $
+ * $Id: dos.c,v 1.13 1996/07/08 08:54:25 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -82,7 +82,8 @@ mediaGetDOS(Device *dev, char *file, Boolean probe)
{
char buf[PATH_MAX];
- msgDebug("Request for %s from DOS\n", file);
+ if (isDebug())
+ msgDebug("Request for %s from DOS\n", file);
snprintf(buf, PATH_MAX, "/dos/freebsd/%s", file);
if (file_readable(buf))
return open(buf, O_RDONLY);
diff --git a/usr.sbin/sysinstall/nfs.c b/usr.sbin/sysinstall/nfs.c
index 516e4f1..ce16cec 100644
--- a/usr.sbin/sysinstall/nfs.c
+++ b/usr.sbin/sysinstall/nfs.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: nfs.c,v 1.9 1996/04/23 01:29:30 jkh Exp $
+ * $Id: nfs.c,v 1.10 1996/07/08 08:54:31 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -75,7 +75,8 @@ mediaGetNFS(Device *dev, char *file, Boolean probe)
{
char buf[PATH_MAX];
- msgDebug("Request for %s from NFS\n", file);
+ if (isDebug())
+ msgDebug("Request for %s from NFS\n", file);
snprintf(buf, PATH_MAX, "/dist/%s", file);
if (file_readable(buf))
return open(buf, O_RDONLY);
diff --git a/usr.sbin/sysinstall/tape.c b/usr.sbin/sysinstall/tape.c
index e611113..5c8f602 100644
--- a/usr.sbin/sysinstall/tape.c
+++ b/usr.sbin/sysinstall/tape.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: tape.c,v 1.11 1996/04/23 01:29:34 jkh Exp $
+ * $Id: tape.c,v 1.12 1996/07/08 08:54:36 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -84,7 +84,8 @@ mediaGetTape(Device *dev, char *file, Boolean probe)
int fd;
sprintf(buf, "%s/%s", (char *)dev->private, file);
- msgDebug("Request for %s from tape (looking in %s)\n", file, buf);
+ if (isDebug())
+ msgDebug("Request for %s from tape (looking in %s)\n", file, buf);
if (file_readable(buf))
fd = open(buf, O_RDONLY);
else {
diff --git a/usr.sbin/sysinstall/ufs.c b/usr.sbin/sysinstall/ufs.c
index 95ea97f..9a70070 100644
--- a/usr.sbin/sysinstall/ufs.c
+++ b/usr.sbin/sysinstall/ufs.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: ufs.c,v 1.7 1996/03/02 07:31:58 jkh Exp $
+ * $Id: ufs.c,v 1.8 1996/04/13 13:32:14 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -47,7 +47,8 @@ mediaGetUFS(Device *dev, char *file, Boolean probe)
{
char buf[PATH_MAX];
- msgDebug("Request for %s from UFS\n", file);
+ if (isDebug())
+ msgDebug("Request for %s from UFS\n", file);
snprintf(buf, PATH_MAX, "%s/%s", dev->private, file);
if (file_readable(buf))
return open(buf, O_RDONLY);
OpenPOWER on IntegriCloud