summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2000-12-29 19:17:18 +0000
committermjacob <mjacob@FreeBSD.org>2000-12-29 19:17:18 +0000
commit10e300a6dd9c14006f5e6f027bbc8e93b2691023 (patch)
tree445ff90faf9e44d22379710daec43b03d9622143 /sys
parenta2ee3f2b32ec86f64385c48cbfa28c11a26cffe9 (diff)
downloadFreeBSD-src-10e300a6dd9c14006f5e6f027bbc8e93b2691023.zip
FreeBSD-src-10e300a6dd9c14006f5e6f027bbc8e93b2691023.tar.gz
Add in Bill Sommerfeld's -Wformat stuff. Add a ISP_CFG_NOINIT option
to keep from completing initialization when isp_init is called.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/isp/ispvar.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/dev/isp/ispvar.h b/sys/dev/isp/ispvar.h
index 0e0ad05..a9dc2b4 100644
--- a/sys/dev/isp/ispvar.h
+++ b/sys/dev/isp/ispvar.h
@@ -390,6 +390,7 @@ typedef struct ispsoftc {
*/
#define ISP_CFG_NORELOAD 0x80 /* don't download f/w */
#define ISP_CFG_NONVRAM 0x40 /* ignore NVRAM */
+#define ISP_CFG_NOINIT 0x20 /* just set defaults- don't init */
#define ISP_CFG_FULL_DUPLEX 0x01 /* Full Duplex (Fibre Channel only) */
#define ISP_CFG_OWNWWN 0x02 /* override NVRAM wwn */
#define ISP_CFG_PORT_PREF 0x0C /* Mask for Port Prefs (2200 only) */
@@ -534,7 +535,13 @@ int isp_async __P((struct ispsoftc *, ispasync_t, void *));
/*
* Platform Dependent Error and Debug Printout
*/
+#ifdef __GNUC__
+void isp_prt __P((struct ispsoftc *, int level, const char *, ...))
+ __attribute__((__format__(__printf__,3,4)));
+#else
void isp_prt __P((struct ispsoftc *, int level, const char *, ...));
+#endif
+
#define ISP_LOGALL 0x0 /* log always */
#define ISP_LOGCONFIG 0x1 /* log configuration messages */
#define ISP_LOGINFO 0x2 /* log informational messages */
OpenPOWER on IntegriCloud