diff options
author | dchagin <dchagin@FreeBSD.org> | 2015-04-05 18:25:23 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2015-04-05 18:25:23 +0000 |
commit | 1e93730b8cf2f5b02bd29e2f368a83e12469a145 (patch) | |
tree | 133864a11d9c9538bed92c9c166e15a7e78192d5 | |
parent | a42a99dc2648b4a890952d728ed0ab73045f223f (diff) | |
download | FreeBSD-src-1e93730b8cf2f5b02bd29e2f368a83e12469a145.zip FreeBSD-src-1e93730b8cf2f5b02bd29e2f368a83e12469a145.tar.gz |
Fix wrong kassert msg in uma.
PR: 199172
Submitted by: luke.tw gmail com
MFC after: 1 week
-rw-r--r-- | sys/vm/uma_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c index 7556803..7abde8d 100644 --- a/sys/vm/uma_core.c +++ b/sys/vm/uma_core.c @@ -3060,7 +3060,7 @@ uma_zone_set_fini(uma_zone_t zone, uma_fini fini) uma_keg_t keg; keg = zone_first_keg(zone); - KASSERT(keg != NULL, ("uma_zone_set_init: Invalid zone type")); + KASSERT(keg != NULL, ("uma_zone_set_fini: Invalid zone type")); KEG_LOCK(keg); KASSERT(keg->uk_pages == 0, ("uma_zone_set_fini on non-empty keg")); @@ -3100,7 +3100,7 @@ uma_zone_set_freef(uma_zone_t zone, uma_free freef) uma_keg_t keg; keg = zone_first_keg(zone); - KASSERT(keg != NULL, ("uma_zone_set_init: Invalid zone type")); + KASSERT(keg != NULL, ("uma_zone_set_freef: Invalid zone type")); KEG_LOCK(keg); keg->uk_freef = freef; KEG_UNLOCK(keg); |