summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ldomd/ds.c
diff options
context:
space:
mode:
authorstsp <stsp@openbsd.org>2013-02-19 09:26:54 +0000
committerstsp <stsp@openbsd.org>2013-02-19 09:26:54 +0000
commitc1729f59f81c74c165f8b9ca19a9f78bed61f7bc (patch)
treee16d9062fa73daa6dc3f12b730f1f339ae4eb21f /usr.sbin/ldomd/ds.c
parentRemove m68k optimizer workaround. (diff)
downloadwireguard-openbsd-c1729f59f81c74c165f8b9ca19a9f78bed61f7bc.tar.xz
wireguard-openbsd-c1729f59f81c74c165f8b9ca19a9f78bed61f7bc.zip
When opening a /dev/ldom-* device node fails, show its path in the error
message. Tweak error message wording while here for consistency. tweaks and ok kettenis@
Diffstat (limited to 'usr.sbin/ldomd/ds.c')
-rw-r--r--usr.sbin/ldomd/ds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ldomd/ds.c b/usr.sbin/ldomd/ds.c
index 6c780d9e6dc..a3d4ecfaecf 100644
--- a/usr.sbin/ldomd/ds.c
+++ b/usr.sbin/ldomd/ds.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ds.c,v 1.3 2012/11/04 23:28:07 kettenis Exp $ */
+/* $OpenBSD: ds.c,v 1.4 2013/02/19 09:26:54 stsp Exp $ */
/*
* Copyright (c) 2012 Mark Kettenis
@@ -646,7 +646,7 @@ ds_conn_open(const char *path, void *cookie)
dc->fd = open(path, O_RDWR, 0);
if (dc->fd == -1)
- err(1, "open");
+ err(1, "cannot open %s", path);
memset(&dc->lc, 0, sizeof(dc->lc));
dc->lc.lc_fd = dc->fd;