From 89b3b445ffaa56c5570c1aab06ed0063e1d4a6b2 Mon Sep 17 00:00:00 2001 From: jca Date: Fri, 5 Jan 2018 13:34:52 +0000 Subject: [PATCH] Use log_warnx() in places where errno is irrelevant. ok mlarkin@ ccardenas@ --- usr.sbin/vmd/config.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.sbin/vmd/config.c b/usr.sbin/vmd/config.c index 006fc7d2efb..b2d0010f5e1 100644 --- a/usr.sbin/vmd/config.c +++ b/usr.sbin/vmd/config.c @@ -1,4 +1,4 @@ -/* $OpenBSD: config.c,v 1.39 2018/01/04 15:19:56 ccardenas Exp $ */ +/* $OpenBSD: config.c,v 1.40 2018/01/05 13:34:52 jca Exp $ */ /* * Copyright (c) 2015 Reyk Floeter @@ -252,7 +252,7 @@ config_setvm(struct privsep *ps, struct vmd_vm *vm, uint32_t peerid, uid_t uid) goto fail; } if (S_ISREG(stat_buf.st_mode) == 0) { - log_warn("%s: cdrom %s is not a regular file", __func__, + log_warnx("%s: cdrom %s is not a regular file", __func__, vcp->vcp_cdrom); errno = VMD_CDROM_INVALID; goto fail; @@ -276,7 +276,7 @@ config_setvm(struct privsep *ps, struct vmd_vm *vm, uint32_t peerid, uid_t uid) goto fail; } if (S_ISREG(stat_buf.st_mode) == 0) { - log_warn("%s: disk %s is not a regular file", __func__, + log_warnx("%s: disk %s is not a regular file", __func__, vcp->vcp_disks[i]); errno = VMD_DISK_INVALID; goto fail; -- 2.20.1