diff options
author | sbruno <sbruno@FreeBSD.org> | 2013-03-28 12:44:43 +0000 |
---|---|---|
committer | sbruno <sbruno@FreeBSD.org> | 2013-03-28 12:44:43 +0000 |
commit | 79d409e127c53fded7f1ce9f6e1c76d1d7d85eef (patch) | |
tree | 2c994717b1b40803a03ee4ba471cc822d47a4669 /sys | |
parent | 674a0b97f5232c5275bfd0394620e7809315c694 (diff) | |
download | FreeBSD-src-79d409e127c53fded7f1ce9f6e1c76d1d7d85eef.zip FreeBSD-src-79d409e127c53fded7f1ce9f6e1c76d1d7d85eef.tar.gz |
Restore DB_COMMAND capabilities of ciss(4) for debugging and diagnostics
Obtained from: Yahoo! Inc.
MFC after: 2 weeks
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ciss/ciss.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/ciss/ciss.c b/sys/dev/ciss/ciss.c index 24d96eb..78baafc 100644 --- a/sys/dev/ciss/ciss.c +++ b/sys/dev/ciss/ciss.c @@ -4301,6 +4301,9 @@ ciss_print_ldrive(struct ciss_softc *sc, struct ciss_ldrive *ld) } #ifdef CISS_DEBUG +#include "opt_ddb.h" +#ifdef DDB +#include <ddb/ddb.h> /************************************************************************ * Print information about the controller/driver. */ @@ -4335,8 +4338,7 @@ ciss_print_adapter(struct ciss_softc *sc) } /* DDB hook */ -static void -ciss_print0(void) +DB_COMMAND(ciss_prt, db_ciss_prt) { struct ciss_softc *sc; @@ -4348,6 +4350,7 @@ ciss_print0(void) } } #endif +#endif /************************************************************************ * Return a name for a logical drive status value. |