diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2015-12-05 20:33:52 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2015-12-05 20:33:52 +0000 |
commit | adf445ee171e87a1525a00621f6bf60e79f15880 (patch) | |
tree | e2411a6612b6f750b4615b842bd6e9ebefe2eaa3 | |
parent | ed082c3bac7e594063ba7552e99826a467167cd2 (diff) |
Print shorter error message if opening /dev/vmm failed.
Pointed out by deraadt@
-rw-r--r-- | usr.sbin/vmd/vmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/vmd/vmd.c b/usr.sbin/vmd/vmd.c index 674848628a2..22546e2b183 100644 --- a/usr.sbin/vmd/vmd.c +++ b/usr.sbin/vmd/vmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmd.c,v 1.16 2015/12/03 23:32:32 reyk Exp $ */ +/* $OpenBSD: vmd.c,v 1.17 2015/12/05 20:33:51 reyk Exp $ */ /* * Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org> @@ -297,7 +297,7 @@ main(int argc, char **argv) /* Open /dev/vmm */ env->vmd_fd = open(VMM_NODE, O_RDWR); if (env->vmd_fd == -1) - fatal("can't open vmm device node %s", VMM_NODE); + fatal("%s", VMM_NODE); /* Configuration will be parsed after forking the children */ env->vmd_conffile = VMD_CONF; |