diff options
author | jhb <jhb@FreeBSD.org> | 2005-12-29 18:00:42 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2005-12-29 18:00:42 +0000 |
commit | a31913be5e5db4f2b54b5b68667500f27ca25cb4 (patch) | |
tree | 91e16625be5d6dfa347e5f2e80ddd42c00589fc1 | |
parent | 9cab9d9e6654f072258f1b207b2d5547e1774dd4 (diff) | |
download | FreeBSD-src-a31913be5e5db4f2b54b5b68667500f27ca25cb4.zip FreeBSD-src-a31913be5e5db4f2b54b5b68667500f27ca25cb4.tar.gz |
Increment kobj_lookup_misses on a miss rather than decrementing it.
Otherwise, the miss count is actually -kobj_lookup_misses. Mostly a
pedantic change as KOBJ_STATS isn't on by default.
-rw-r--r-- | sys/kern/subr_kobj.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_kobj.c b/sys/kern/subr_kobj.c index b8528fa..4e2f096 100644 --- a/sys/kern/subr_kobj.c +++ b/sys/kern/subr_kobj.c @@ -237,7 +237,7 @@ kobj_lookup_method(kobj_class_t cls, * a 'miss'. */ kobj_lookup_hits--; - kobj_lookup_misses--; + kobj_lookup_misses++; #endif ce = kobj_lookup_method_mi(cls, desc); |