From 79d409e127c53fded7f1ce9f6e1c76d1d7d85eef Mon Sep 17 00:00:00 2001 From: sbruno Date: Thu, 28 Mar 2013 12:44:43 +0000 Subject: [PATCH] Restore DB_COMMAND capabilities of ciss(4) for debugging and diagnostics Obtained from: Yahoo! Inc. MFC after: 2 weeks --- sys/dev/ciss/ciss.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/dev/ciss/ciss.c b/sys/dev/ciss/ciss.c index 24d96eb7d426..78baafcea76d 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 /************************************************************************ * 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.