From d6602284a8aca759565d3e9c5906b19975831da4 Mon Sep 17 00:00:00 2001 From: Mike Larkin Date: Fri, 8 Sep 2017 06:24:32 +0000 Subject: vmd: add more explanatory log_debug messages From Carlos Cardenas, many thanks! --- usr.sbin/vmd/control.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'usr.sbin/vmd/control.c') diff --git a/usr.sbin/vmd/control.c b/usr.sbin/vmd/control.c index 1af8a0d5e14..1a3aefe7d49 100644 --- a/usr.sbin/vmd/control.c +++ b/usr.sbin/vmd/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.21 2017/07/15 05:05:36 pd Exp $ */ +/* $OpenBSD: control.c,v 1.22 2017/09/08 06:24:31 mlarkin Exp $ */ /* * Copyright (c) 2010-2015 Reyk Floeter @@ -401,9 +401,14 @@ control_dispatch_imsg(int fd, short event, void *arg) goto fail; memcpy(&vid, imsg.data, sizeof(vid)); vid.vid_uid = c->peercred.uid; + log_debug("%s id: %d, name: %s, uid: %d", + __func__, vid.vid_id, vid.vid_name, + vid.vid_uid); if (proc_compose_imsg(ps, PROC_PARENT, -1, imsg.hdr.type, fd, -1, &vid, sizeof(vid)) == -1) { + log_debug("%s: proc_compose_imsg failed", + __func__); control_close(fd, cs); return; } -- cgit v1.2.3