summaryrefslogtreecommitdiff
path: root/sys/arch/i386/stand/libsa/dev_i386.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-04-15 03:31:07 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-04-15 03:31:07 +0000
commit74b5fc28672f12de1a4bcb0f0157db2c761dfdcf (patch)
treef091082c6c694fe37ecef1c590703c83329d7cfd /sys/arch/i386/stand/libsa/dev_i386.c
parentab64339cc23edfc30da89d1c4498feb03d9b3ce4 (diff)
print debugging stuff only when debug!=0
Diffstat (limited to 'sys/arch/i386/stand/libsa/dev_i386.c')
-rw-r--r--sys/arch/i386/stand/libsa/dev_i386.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/arch/i386/stand/libsa/dev_i386.c b/sys/arch/i386/stand/libsa/dev_i386.c
index 78936b2bd1d..e8a711104c5 100644
--- a/sys/arch/i386/stand/libsa/dev_i386.c
+++ b/sys/arch/i386/stand/libsa/dev_i386.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dev_i386.c,v 1.6 1997/04/08 22:48:28 mickey Exp $ */
+/* $OpenBSD: dev_i386.c,v 1.7 1997/04/15 03:31:06 mickey Exp $ */
/*
* Copyright (c) 1996 Michael Shalayeff
@@ -50,25 +50,28 @@ devopen(struct open_file *f, const char *fname, char **file)
*file = (char *)fname;
#ifdef DEBUG
- printf("devopen:");
+ if (debug)
+ printf("devopen:");
#endif
for (i = 0; i < ndevs && rc != 0; dp++, i++) {
#ifdef DEBUG
- printf(" %s", dp->dv_name);
+ if (debug)
+ printf(" %s", dp->dv_name);
#endif
if ((rc = (*dp->dv_open)(f, file)) == 0) {
f->f_dev = dp;
return 0;
}
#ifdef DEBUG
- else
+ else if (debug)
printf(":%d", rc);
#endif
}
#ifdef DEBUG
- putchar('\n');
+ if (debug)
+ putchar('\n');
#endif
if ((f->f_flags & F_NODEV) == 0)