summaryrefslogtreecommitdiffstats
path: root/sys/dev/bxe/bxe_debug.h
diff options
context:
space:
mode:
authordavidch <davidch@FreeBSD.org>2011-04-21 23:06:00 +0000
committerdavidch <davidch@FreeBSD.org>2011-04-21 23:06:00 +0000
commit0f13b0e3bfeafa2d83b5c05c2ff47acb45d02a8b (patch)
tree28f91e89f407b28ee63b9ec31535b0b4f05efa2d /sys/dev/bxe/bxe_debug.h
parent72db64ceeaeef4fc6ff9287d3f3da51be1657bf0 (diff)
downloadFreeBSD-src-0f13b0e3bfeafa2d83b5c05c2ff47acb45d02a8b.zip
FreeBSD-src-0f13b0e3bfeafa2d83b5c05c2ff47acb45d02a8b.tar.gz
- Centralize driver tunables initialization/validation.
- Centralize PCI resource allocation/release. - Enable flowid (TSS) support. - Added "per-fastpath" locks and watchdog timeouts. - Fixed problem where the CQ producer index was advanced beyond the size of the CQ ring during initialization. - Replaced hard-coded debug levels in some debug print statements. - More style(9) fixes. MFC after: Two weeks
Diffstat (limited to 'sys/dev/bxe/bxe_debug.h')
-rw-r--r--sys/dev/bxe/bxe_debug.h48
1 files changed, 24 insertions, 24 deletions
diff --git a/sys/dev/bxe/bxe_debug.h b/sys/dev/bxe/bxe_debug.h
index 47cabb5..a08641b 100644
--- a/sys/dev/bxe/bxe_debug.h
+++ b/sys/dev/bxe/bxe_debug.h
@@ -159,50 +159,50 @@ extern uint32_t bxe_debug;
#ifdef BXE_DEBUG
/* Print a message based on the logging level and code path. */
-#define DBPRINT(sc, level, format, args...) \
- do { \
- if (BXE_LOG_MSG(level)) { \
- device_printf(sc->bxe_dev, format, ## args); \
- } \
+#define DBPRINT(sc, level, format, args...) \
+ do { \
+ if (BXE_LOG_MSG(level)) { \
+ device_printf(sc->dev, format, ## args); \
+ } \
} while (0)
/* Runs a particular command when debugging is enabled. */
-#define DBRUN(args...) \
- do { \
- args; \
+#define DBRUN(args...) \
+ do { \
+ args; \
} while (0)
/* Runs a particular command based on the logging level. */
-#define DBRUNLV(level, args...) \
- if (BXE_MSG_LEVEL(level)) { \
- args; \
+#define DBRUNLV(level, args...) \
+ if (BXE_MSG_LEVEL(level)) { \
+ args; \
}
/* Runs a particular command based on the code path. */
-#define DBRUNCP(cp, args...) \
- if (BXE_CODE_PATH(cp)) { \
- args; \
+#define DBRUNCP(cp, args...) \
+ if (BXE_CODE_PATH(cp)) { \
+ args; \
}
/* Runs a particular command based on a condition. */
-#define DBRUNIF(cond, args...) \
- if (cond) { \
- args; \
+#define DBRUNIF(cond, args...) \
+ if (cond) { \
+ args; \
}
/* Runs a particular command based on the logging level and code path. */
-#define DBRUNMSG(msg, args...) \
- if (BXE_LOG_MSG(msg)) { \
- args; \
+#define DBRUNMSG(msg, args...) \
+ if (BXE_LOG_MSG(msg)) { \
+ args; \
}
/* Announces function entry. */
-#define DBENTER(cond) \
- DBPRINT(sc, (cond), "%s(enter:%d)\n", __FUNCTION__, curcpu) \
+#define DBENTER(cond) \
+ DBPRINT(sc, (cond), "%s(enter:%d)\n", __FUNCTION__, curcpu)
/* Announces function exit. */
-#define DBEXIT(cond) \
- DBPRINT(sc, (cond), "%s(exit:%d)\n", __FUNCTION__, curcpu) \
+#define DBEXIT(cond) \
+ DBPRINT(sc, (cond), "%s(exit:%d)\n", __FUNCTION__, curcpu)
/* Needed for random() function which is only used in debugging. */
#include <sys/random.h>
OpenPOWER on IntegriCloud