diff options
author | jhb <jhb@FreeBSD.org> | 2003-03-04 21:03:05 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-03-04 21:03:05 +0000 |
commit | e4bcd25517da2e44fd854859cc6ead7dcfe3df3a (patch) | |
tree | d32954415444ccb8c42b0a457f6f0e6e15a0d64e /sys/vm | |
parent | e87dfc0cdec66dcab96cfd816e8a33d1c59dc261 (diff) | |
download | FreeBSD-src-e4bcd25517da2e44fd854859cc6ead7dcfe3df3a.zip FreeBSD-src-e4bcd25517da2e44fd854859cc6ead7dcfe3df3a.tar.gz |
Replace calls to WITNESS_SLEEP() and witness_list() with equivalent calls
to WITNESS_WARN().
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/uma_core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c index 1fa83df..2e8e704 100644 --- a/sys/vm/uma_core.c +++ b/sys/vm/uma_core.c @@ -1327,7 +1327,8 @@ uma_zalloc_arg(uma_zone_t zone, void *udata, int flags) if (!(flags & M_NOWAIT)) { KASSERT(curthread->td_intr_nesting_level == 0, ("malloc(M_WAITOK) in interrupt context")); - WITNESS_SLEEP(1, NULL); + WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL, + "malloc() of \"%s\"", zone->uz_name); } zalloc_restart: |