summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorzinovik <zinovik@cvs.openbsd.org>2010-04-01 18:24:05 +0000
committerzinovik <zinovik@cvs.openbsd.org>2010-04-01 18:24:05 +0000
commit70414542b0d526a8e115c4ad34bdd5f75584370a (patch)
tree7d3fd47aed491b5fdd2210679db63e5b72d2f6ff /usr.sbin
parent9698d2b8e3176084d4d635d12f1e2fdd725ef5c1 (diff)
fix fatal calls, that they will report function names from which they are
called, in case of failure developer will be digging for a bug in wrong place ok krw@, pyr@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ypldap/ldapclient.c6
-rw-r--r--usr.sbin/ypldap/ypldap.c4
-rw-r--r--usr.sbin/ypldap/ypldap_dns.c4
3 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/ypldap/ldapclient.c b/usr.sbin/ypldap/ldapclient.c
index afdd4b4a8fe..66359ef49c9 100644
--- a/usr.sbin/ypldap/ldapclient.c
+++ b/usr.sbin/ypldap/ldapclient.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldapclient.c,v 1.14 2009/06/06 05:02:58 eric Exp $ */
+/* $OpenBSD: ldapclient.c,v 1.15 2010/04/01 18:24:04 zinovik Exp $ */
/*
* Copyright (c) 2008 Alexander Schrijver <aschrijver@openbsd.org>
@@ -180,7 +180,7 @@ client_dispatch_dns(int fd, short event, void *p)
for (;;) {
if ((n = imsg_get(ibuf, &imsg)) == -1)
- fatal("client_dispatch_parent: imsg_read_error");
+ fatal("client_dispatch_dns: imsg_get error");
if (n == 0)
break;
@@ -282,7 +282,7 @@ client_dispatch_parent(int fd, short event, void *p)
for (;;) {
if ((n = imsg_get(ibuf, &imsg)) == -1)
- fatal("client_dispatch_parent: imsg_read_error");
+ fatal("client_dispatch_parent: imsg_get error");
if (n == 0)
break;
diff --git a/usr.sbin/ypldap/ypldap.c b/usr.sbin/ypldap/ypldap.c
index fae15a68b5e..4ae542f4c43 100644
--- a/usr.sbin/ypldap/ypldap.c
+++ b/usr.sbin/ypldap/ypldap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypldap.c,v 1.8 2009/06/06 05:02:58 eric Exp $ */
+/* $OpenBSD: ypldap.c,v 1.9 2010/04/01 18:24:04 zinovik Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -145,7 +145,7 @@ main_dispatch_client(int fd, short event, void *p)
for (;;) {
if ((n = imsg_get(ibuf, &imsg)) == -1)
- fatal("main_dispatch_client: imsg_read error");
+ fatal("main_dispatch_client: imsg_get error");
if (n == 0)
break;
diff --git a/usr.sbin/ypldap/ypldap_dns.c b/usr.sbin/ypldap/ypldap_dns.c
index ea1ac6cb48e..4b03e78e9f0 100644
--- a/usr.sbin/ypldap/ypldap_dns.c
+++ b/usr.sbin/ypldap/ypldap_dns.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypldap_dns.c,v 1.2 2009/06/06 05:02:58 eric Exp $ */
+/* $OpenBSD: ypldap_dns.c,v 1.3 2010/04/01 18:24:04 zinovik Exp $ */
/*
* Copyright (c) 2003-2008 Henning Brauer <henning@openbsd.org>
@@ -152,7 +152,7 @@ dns_dispatch_imsg(int fd, short event, void *p)
for (;;) {
if ((n = imsg_get(ibuf, &imsg)) == -1)
- fatal("client_dispatch_parent: imsg_read_error");
+ fatal("client_dispatch_imsg: imsg_get error");
if (n == 0)
break;