[Midnightbsd-cvs] src [9082] trunk/sys/dev/ciss/ciss.c: fix compile with debug defined
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Oct 1 06:25:18 EDT 2016
Revision: 9082
http://svnweb.midnightbsd.org/src/?rev=9082
Author: laffer1
Date: 2016-10-01 06:25:18 -0400 (Sat, 01 Oct 2016)
Log Message:
-----------
fix compile with debug defined
Modified Paths:
--------------
trunk/sys/dev/ciss/ciss.c
Modified: trunk/sys/dev/ciss/ciss.c
===================================================================
--- trunk/sys/dev/ciss/ciss.c 2016-10-01 10:24:47 UTC (rev 9081)
+++ trunk/sys/dev/ciss/ciss.c 2016-10-01 10:25:18 UTC (rev 9082)
@@ -1869,7 +1869,7 @@
ldrive = CISS_LUN_TO_TARGET(ld->cl_address.logical.lun);
- debug(0, "bringing logical drive %d back online");
+ debug(0, "bringing logical drive %d back online", ldrive);
/*
* Build a CISS BMIC command to bring the drive back online.
@@ -4308,6 +4308,9 @@
}
#ifdef CISS_DEBUG
+#include "opt_ddb.h"
+#ifdef DDB
+#include <ddb/ddb.h>
/************************************************************************
* Print information about the controller/driver.
*/
@@ -4342,8 +4345,7 @@
}
/* DDB hook */
-static void
-ciss_print0(void)
+DB_COMMAND(ciss_prt, db_ciss_prt)
{
struct ciss_softc *sc;
@@ -4355,6 +4357,7 @@
}
}
#endif
+#endif
/************************************************************************
* Return a name for a logical drive status value.
More information about the Midnightbsd-cvs
mailing list