summaryrefslogtreecommitdiff
path: root/regress/sys
diff options
context:
space:
mode:
authoranton <anton@cvs.openbsd.org>2019-01-23 19:40:21 +0000
committeranton <anton@cvs.openbsd.org>2019-01-23 19:40:21 +0000
commit0531ced1bfd5dfe3a586170aa00f25d475f5cce7 (patch)
tree37181c5dbc4b95fad6d24d6b00fa9d3adb66e41f /regress/sys
parent89516c2fa5c421eb45b34f8e8b6bca4f4c183745 (diff)
fix dumping of trace cmp coverage
Diffstat (limited to 'regress/sys')
-rw-r--r--regress/sys/dev/kcov/kcov.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/sys/dev/kcov/kcov.c b/regress/sys/dev/kcov/kcov.c
index ad5ef10704f..295673efd80 100644
--- a/regress/sys/dev/kcov/kcov.c
+++ b/regress/sys/dev/kcov/kcov.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kcov.c,v 1.9 2019/01/20 10:02:38 anton Exp $ */
+/* $OpenBSD: kcov.c,v 1.10 2019/01/23 19:40:20 anton Exp $ */
/*
* Copyright (c) 2018 Anton Lindqvist <anton@openbsd.org>
@@ -210,7 +210,7 @@ dump(const unsigned long *cover, int mode)
stride = 4;
for (i = 0; i < cover[0]; i++)
- printf("%p\n", (void *)cover[i * stride + 1]);
+ printf("%p\n", (void *)cover[i * stride + stride]);
}
static int