summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Hedenfal <martinh@cvs.openbsd.org>2011-01-13 06:07:43 +0000
committerMartin Hedenfal <martinh@cvs.openbsd.org>2011-01-13 06:07:43 +0000
commit578f0b70575ef896d8fa830b3589bc52ea7c2633 (patch)
tree0bd9e6eaca6f54678a7d86d72a739ce883bedd1d
parent8541a45bdf6dbb310f29759e3bb7643f16676427 (diff)
Log match requests at debug level.
ok pyr@
-rw-r--r--usr.sbin/ypldap/yp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/ypldap/yp.c b/usr.sbin/ypldap/yp.c
index e02f1da9783..3c4b0dcfc43 100644
--- a/usr.sbin/ypldap/yp.c
+++ b/usr.sbin/ypldap/yp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: yp.c,v 1.8 2011/01/13 06:05:18 martinh Exp $ */
+/* $OpenBSD: yp.c,v 1.9 2011/01/13 06:07:42 martinh Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
*
@@ -324,6 +324,9 @@ ypproc_match_2_svc(ypreq_key *arg, struct svc_req *req)
const char *estr;
char key[YPMAXRECORD+1];
+ log_debug("matching '%.*s' in map %s", arg->key.keydat_len,
+ arg->key.keydat_val, arg->map);
+
if (yp_valid_domain(arg->domain, (struct ypresp_val *)&res) == -1)
return (&res);