summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/media.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1999-08-21 07:13:20 +0000
committerjkh <jkh@FreeBSD.org>1999-08-21 07:13:20 +0000
commit156e57ed724a27d874538c35a48843dc2cd55501 (patch)
tree514822a51c12d1c439007cd03f5dbff99e35cce6 /usr.sbin/sysinstall/media.c
parente71ab7f5d2256732f43b2b13198bd8cefd18807e (diff)
downloadFreeBSD-src-156e57ed724a27d874538c35a48843dc2cd55501.zip
FreeBSD-src-156e57ed724a27d874538c35a48843dc2cd55501.tar.gz
Quiet some overly chatty debug output, do some minor cleanups to
the DHCP support code.
Diffstat (limited to 'usr.sbin/sysinstall/media.c')
-rw-r--r--usr.sbin/sysinstall/media.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/usr.sbin/sysinstall/media.c b/usr.sbin/sysinstall/media.c
index b423c06..625d657 100644
--- a/usr.sbin/sysinstall/media.c
+++ b/usr.sbin/sysinstall/media.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: media.c,v 1.97 1999/03/10 21:59:01 jkh Exp $
+ * $Id: media.c,v 1.98 1999/05/07 05:39:50 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -409,7 +409,8 @@ mediaSetFTP(dialogMenuItem *self)
return DITEM_FAILURE | what;
}
}
- msgDebug("Found DNS entry for %s successfully..\n", hostname);
+ if (isDebug())
+ msgDebug("Found DNS entry for %s successfully..\n", hostname);
}
variable_set2(VAR_FTP_HOST, hostname, 0);
variable_set2(VAR_FTP_DIR, dir ? dir : "/", 0);
@@ -510,8 +511,10 @@ mediaSetNFS(dialogMenuItem *self)
variable_unset(VAR_NFS_PATH);
return DITEM_FAILURE;
}
- else
- msgDebug("Found DNS entry for %s successfully..", hostname);
+ else {
+ if (isDebug())
+ msgDebug("Found DNS entry for %s successfully..", hostname);
+ }
}
variable_set2(VAR_NFS_HOST, hostname, 0);
nfsDevice.type = DEVICE_TYPE_NFS;
OpenPOWER on IntegriCloud