diff options
author | obrien <obrien@FreeBSD.org> | 1998-10-29 10:18:49 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 1998-10-29 10:18:49 +0000 |
commit | 7b016aff6e4b71e745b0caa5533389c836e5f642 (patch) | |
tree | c7146d22ab13f6456545e8ffbe9822df6c7e33bc | |
parent | 011dea986ec2667172fccc3e5cf054f0c3415fd0 (diff) | |
download | FreeBSD-src-7b016aff6e4b71e745b0caa5533389c836e5f642.zip FreeBSD-src-7b016aff6e4b71e745b0caa5533389c836e5f642.tar.gz |
Add some debugging statments (only if DEBUG opt is set), to try pin down
the hangs many of us are experiencing.
-rw-r--r-- | release/sysinstall/media.c | 6 | ||||
-rw-r--r-- | usr.sbin/sysinstall/media.c | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/release/sysinstall/media.c b/release/sysinstall/media.c index c5ae93e..95a2007 100644 --- a/release/sysinstall/media.c +++ b/release/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.88 1998/10/10 09:43:44 jkh Exp $ + * $Id: media.c,v 1.89 1998/10/12 23:45:07 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -387,7 +387,11 @@ mediaSetFTP(dialogMenuItem *self) msgDebug("port # = `%d'\n", FtpPort); } if (variable_get(VAR_NAMESERVER)) { + if (isDebug()) + msgDebug("Starting DNS.\n"); kickstart_dns(); + if (isDebug()) + msgDebug("Looking up hostname: %s.\n", hostname); if ((inet_addr(hostname) == INADDR_NONE) && (gethostbyname(hostname) == NULL)) { msgConfirm("Cannot resolve hostname `%s'! Are you sure that your\n" "name server, gateway and network interface are correctly configured?", hostname); diff --git a/usr.sbin/sysinstall/media.c b/usr.sbin/sysinstall/media.c index c5ae93e..95a2007 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.88 1998/10/10 09:43:44 jkh Exp $ + * $Id: media.c,v 1.89 1998/10/12 23:45:07 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -387,7 +387,11 @@ mediaSetFTP(dialogMenuItem *self) msgDebug("port # = `%d'\n", FtpPort); } if (variable_get(VAR_NAMESERVER)) { + if (isDebug()) + msgDebug("Starting DNS.\n"); kickstart_dns(); + if (isDebug()) + msgDebug("Looking up hostname: %s.\n", hostname); if ((inet_addr(hostname) == INADDR_NONE) && (gethostbyname(hostname) == NULL)) { msgConfirm("Cannot resolve hostname `%s'! Are you sure that your\n" "name server, gateway and network interface are correctly configured?", hostname); |