Restore DB_COMMAND capabilities of ciss(4) for debugging and diagnostics
Obtained from: Yahoo! Inc. MFC after: 2 weeks
This commit is contained in:
parent
47bf7bcb97
commit
b27556e012
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user