diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2018-01-05 13:34:53 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2018-01-05 13:34:53 +0000 |
commit | 9da1e2dad37ec77835e90c6000ca603a41d5f8dc (patch) | |
tree | 167fe9bdb0f14b06ecf7812c5e265a792743fe3b /usr.sbin | |
parent | c545df09846b44c094bb58f9b9622c154772aaa2 (diff) |
Use log_warnx() in places where errno is irrelevant.
ok mlarkin@ ccardenas@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/vmd/config.c | 6 |
1 files 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 <reyk@openbsd.org> @@ -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; |