diff options
author | jkh <jkh@FreeBSD.org> | 1996-08-23 07:56:06 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-08-23 07:56:06 +0000 |
commit | d3739879c900835e0dc24200f02147d90e6a04ef (patch) | |
tree | 69af8b5de1d6b46ca3b0dfb634ea459085641164 /usr.sbin/sysinstall/tape.c | |
parent | 165e9df2a3701ed0e39568d23c2aee30548143d0 (diff) | |
download | FreeBSD-src-d3739879c900835e0dc24200f02147d90e6a04ef.zip FreeBSD-src-d3739879c900835e0dc24200f02147d90e6a04ef.tar.gz |
Conditionalize some annoying debug statements, update the docs.
Diffstat (limited to 'usr.sbin/sysinstall/tape.c')
-rw-r--r-- | usr.sbin/sysinstall/tape.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 { |