aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2005-12-29 18:00:42 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2005-12-29 18:00:42 +0000
commit42b6a681bce46d2c6b0e138a5e54ed33c420d24e (patch)
tree91e16625be5d6dfa347e5f2e80ddd42c00589fc1
parent54de74466a964c3c68a911f14e65c00fcdb0a20c (diff)
downloadsrc-42b6a681bce46d2c6b0e138a5e54ed33c420d24e.tar.gz
src-42b6a681bce46d2c6b0e138a5e54ed33c420d24e.zip
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.
Notes
Notes: svn path=/head/; revision=153844
-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 b8528fa276a9..4e2f096499b8 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);