From 5e6f4d1273cff2f99bbcad8813f46d5ca45c1e5c Mon Sep 17 00:00:00 2001 From: anton Date: Wed, 12 Jan 2022 19:55:12 +0000 Subject: [PATCH] Extend the verbose logging. --- sys/dev/kcov.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/dev/kcov.c b/sys/dev/kcov.c index 05a4b3a8cca..a5de01047bb 100644 --- a/sys/dev/kcov.c +++ b/sys/dev/kcov.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kcov.c,v 1.46 2022/01/11 06:23:05 anton Exp $ */ +/* $OpenBSD: kcov.c,v 1.47 2022/01/12 19:55:12 anton Exp $ */ /* * Copyright (c) 2018 Anton Lindqvist @@ -412,8 +412,8 @@ kcovioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) struct kcov_dev *kd = kr->kr_kd; struct process *pr; - printf("kr: subsystem %d, id %p, nsections %d, state %d, kd %p, pid %d", - kr->kr_subsystem, kr->kr_id, kr->kr_nsections, kr->kr_state, kd, kr->kr_pid); + printf("kr: %p: subsystem %d, id %p, nsections %d, state %d, kd %p, pid %d", + kr, kr->kr_subsystem, kr->kr_id, kr->kr_nsections, kr->kr_state, kd, kr->kr_pid); pr = prfind(kr->kr_pid); if (pr != NULL) printf(", comm %s\n", pr->ps_comm); @@ -421,8 +421,8 @@ kcovioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) printf("\n"); if (kd != NULL) { - printf(" kd: state %d, mode %d, pid %d", - kd->kd_state, kd->kd_mode, kd->kd_pid); + printf(" kd: unit %d, state %d, mode %d, kr %p pid %d", + kd->kd_unit, kd->kd_state, kd->kd_mode, kd->kd_kr, kd->kd_pid); pr = prfind(kr->kr_pid); if (pr != NULL) -- 2.20.1