summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-12-20 00:28:49 +0000
committerbde <bde@FreeBSD.org>1997-12-20 00:28:49 +0000
commit6fd5d1abfc877bfd0b5db451977fbc7761ac7b73 (patch)
tree6179d691b6e38f5f8cf0c935d9e1e679e991814b
parentb1d53f05b150144fbf46436e5db88f1dd3cc4eba (diff)
downloadFreeBSD-src-6fd5d1abfc877bfd0b5db451977fbc7761ac7b73.zip
FreeBSD-src-6fd5d1abfc877bfd0b5db451977fbc7761ac7b73.tar.gz
Ifdefed some conditionally used declarations.
-rw-r--r--sys/scsi/scsi_base.c4
-rw-r--r--sys/scsi/scsiconf.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c
index 2ac7581..fc996df 100644
--- a/sys/scsi/scsi_base.c
+++ b/sys/scsi/scsi_base.c
@@ -8,7 +8,7 @@
* file.
*
* Written by Julian Elischer (julian@dialix.oz.au)
- * $Id: scsi_base.c,v 1.51 1997/09/21 22:03:07 gibbs Exp $
+ * $Id: scsi_base.c,v 1.52 1997/10/12 08:54:46 joerg Exp $
*/
#include "opt_bounce.h"
@@ -36,8 +36,10 @@ static errval scsi_interpret_sense(struct scsi_xfer *);
static struct scsi_xfer *get_xs( struct scsi_link *sc_link, u_int32_t flags);
static void free_xs(struct scsi_xfer *xs, struct scsi_link *sc_link,
u_int32_t flags);
+#ifdef SCSIDEBUG
static void show_mem(unsigned char *address, u_int32_t num);
static void show_scsi_xs (struct scsi_xfer *);
+#endif
#ifdef notyet
static int scsi_sense_qualifiers (struct scsi_xfer *, int *, int *);
diff --git a/sys/scsi/scsiconf.c b/sys/scsi/scsiconf.c
index 7a0ad1a..56baed1 100644
--- a/sys/scsi/scsiconf.c
+++ b/sys/scsi/scsiconf.c
@@ -16,7 +16,7 @@
*
* New configuration setup: dufault@hda.com
*
- * $Id: scsiconf.c,v 1.96 1997/10/19 09:37:49 joerg Exp $
+ * $Id: scsiconf.c,v 1.97 1997/11/06 08:29:50 joerg Exp $
*/
#include "opt_scsi.h"
@@ -1301,8 +1301,10 @@ scsi_probedev(sc_link, maybe_more, type_p)
struct scsi_link *sc_link;
int *type_p;
{
+#ifdef SCSIDEBUG
u_int8_t target = sc_link->target;
u_int8_t lu = sc_link->lun;
+#endif
struct scsidevs *bestmatch = (struct scsidevs *) 0;
int dtype = 0;
char *desc;
OpenPOWER on IntegriCloud