aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack F Vogel <jfv@FreeBSD.org>2007-11-28 19:14:06 +0000
committerJack F Vogel <jfv@FreeBSD.org>2007-11-28 19:14:06 +0000
commitfd4ae6dcff67c75224390d138c5a610d99cb7083 (patch)
tree54ff06839f9ad168cade3101c3969eccfb5d7d79
parentcb2482de6ba164c2eb3eb0d9be96fa2e5f3dd751 (diff)
downloadsrc-fd4ae6dcff67c75224390d138c5a610d99cb7083.tar.gz
src-fd4ae6dcff67c75224390d138c5a610d99cb7083.zip
A minor issue with lock names, WITNESS complains
when the two locks are the same...
Notes
Notes: svn path=/head/; revision=174029
-rw-r--r--sys/dev/em/if_em.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/em/if_em.h b/sys/dev/em/if_em.h
index 1f8aafb393b8..127c9241054e 100644
--- a/sys/dev/em/if_em.h
+++ b/sys/dev/em/if_em.h
@@ -425,9 +425,9 @@ typedef struct _DESCRIPTOR_PAIR
} DESC_ARRAY, *PDESC_ARRAY;
#define EM_CORE_LOCK_INIT(_sc, _name) \
- mtx_init(&(_sc)->core_mtx, _name, MTX_NETWORK_LOCK, MTX_DEF)
+ mtx_init(&(_sc)->core_mtx, _name, "EM Core Lock", MTX_DEF)
#define EM_TX_LOCK_INIT(_sc, _name) \
- mtx_init(&(_sc)->tx_mtx, _name, MTX_NETWORK_LOCK, MTX_DEF)
+ mtx_init(&(_sc)->tx_mtx, _name, "EM TX Lock", MTX_DEF)
#define EM_CORE_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->core_mtx)
#define EM_TX_LOCK_DESTROY(_sc) mtx_destroy(&(_sc)->tx_mtx)
#define EM_CORE_LOCK(_sc) mtx_lock(&(_sc)->core_mtx)