summaryrefslogtreecommitdiff
path: root/usr.sbin/vmd/vmd.h
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2018-07-10 16:15:52 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2018-07-10 16:15:52 +0000
commit2090d98fb17666339582da45301d746977484847 (patch)
tree80aaef8754c08f384e4bf87b6253c2df9f3c7388 /usr.sbin/vmd/vmd.h
parenta47473ca783bce7fba15a0c68cfdd20a037919e2 (diff)
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@
Diffstat (limited to 'usr.sbin/vmd/vmd.h')
-rw-r--r--usr.sbin/vmd/vmd.h6
1 files changed, 3 insertions, 3 deletions
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 <mlarkin@openbsd.org>
@@ -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);