svn commit: r248826 - head/sys/dev/ciss

Sean Bruno sbruno at FreeBSD.org
Thu Mar 28 12:44:44 UTC 2013


Author: sbruno
Date: Thu Mar 28 12:44:43 2013
New Revision: 248826
URL: http://svnweb.freebsd.org/changeset/base/248826

Log:
  Restore DB_COMMAND capabilities of ciss(4) for debugging and diagnostics
  
  Obtained from:	Yahoo! Inc.
  MFC after:	2 weeks

Modified:
  head/sys/dev/ciss/ciss.c

Modified: head/sys/dev/ciss/ciss.c
==============================================================================
--- head/sys/dev/ciss/ciss.c	Thu Mar 28 11:24:30 2013	(r248825)
+++ head/sys/dev/ciss/ciss.c	Thu Mar 28 12:44:43 2013	(r248826)
@@ -4301,6 +4301,9 @@ ciss_print_ldrive(struct ciss_softc *sc,
 }
 
 #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.


More information about the svn-src-all mailing list