summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2013-02-19 09:26:55 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2013-02-19 09:26:55 +0000
commite03b180f8ab49402b8a27907c62fb85930c899a7 (patch)
treea3e08bce67a524fd3ccad7bab8dc849c1ce1fc53 /usr.sbin
parent28aff8863c01c5473680a76fe6b99775e815a7da (diff)
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')
-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;