From 2090d98fb17666339582da45301d746977484847 Mon Sep 17 00:00:00 2001 From: Reyk Floeter Date: Tue, 10 Jul 2018 16:15:52 +0000 Subject: Tweak debug log messages - Turn tracing messages into DPRINTF (only compiled with DEBUG). - Pass __func__ to vm_stop and vm_remove: this way we can track who called the function in the async context. It replaces the manual log_debug in front of each vm_stop/vm_remove. This debug logging trick can be removed in the future once we are more confident about it. OK ccardenas@ mlarkin@ --- usr.sbin/vmd/vmd.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/vmd/vmd.h') diff --git a/usr.sbin/vmd/vmd.h b/usr.sbin/vmd/vmd.h index 4daf3def8c7..9e5edc2c790 100644 --- a/usr.sbin/vmd/vmd.h +++ b/usr.sbin/vmd/vmd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vmd.h,v 1.70 2018/07/09 08:43:09 mlarkin Exp $ */ +/* $OpenBSD: vmd.h,v 1.71 2018/07/10 16:15:51 reyk Exp $ */ /* * Copyright (c) 2015 Mike Larkin @@ -308,8 +308,8 @@ uint32_t vm_id2vmid(uint32_t, struct vmd_vm *); uint32_t vm_vmid2id(uint32_t, struct vmd_vm *); struct vmd_vm *vm_getbyname(const char *); struct vmd_vm *vm_getbypid(pid_t); -void vm_stop(struct vmd_vm *, int); -void vm_remove(struct vmd_vm *); +void vm_stop(struct vmd_vm *, int, const char *); +void vm_remove(struct vmd_vm *, const char *); int vm_register(struct privsep *, struct vmop_create_params *, struct vmd_vm **, uint32_t, uid_t); int vm_checkperm(struct vmd_vm *, uid_t); -- cgit v1.2.3