summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2005-12-29 18:00:42 +0000
committerjhb <jhb@FreeBSD.org>2005-12-29 18:00:42 +0000
commita31913be5e5db4f2b54b5b68667500f27ca25cb4 (patch)
tree91e16625be5d6dfa347e5f2e80ddd42c00589fc1 /sys
parent9cab9d9e6654f072258f1b207b2d5547e1774dd4 (diff)
downloadFreeBSD-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.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/subr_kobj.c2
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);
OpenPOWER on IntegriCloud