Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/ypserv/ypxfr use "ypxfr" instead of __progname as i...
details: https://anonhg.NetBSD.org/src/rev/b12c5691a22a
branches: trunk
changeset: 502041:b12c5691a22a
user: lukem <lukem%NetBSD.org@localhost>
date: Thu Jan 11 00:35:49 2001 +0000
description:
use "ypxfr" instead of __progname as ident arg to openlog
wrap all debug syslogs in #ifdef DEBUG (rather than just most of them)
diffstat:
usr.sbin/ypserv/ypxfr/ypxfr.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (47 lines):
diff -r 17e3baed6dd5 -r b12c5691a22a usr.sbin/ypserv/ypxfr/ypxfr.c
--- a/usr.sbin/ypserv/ypxfr/ypxfr.c Thu Jan 11 00:34:51 2001 +0000
+++ b/usr.sbin/ypserv/ypxfr/ypxfr.c Thu Jan 11 00:35:49 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ypxfr.c,v 1.9 1999/07/25 09:36:02 lukem Exp $ */
+/* $NetBSD: ypxfr.c,v 1.10 2001/01/11 00:35:49 lukem Exp $ */
/*
* Copyright (c) 1994 Mats O Jansson <moj%stacken.kth.se@localhost>
@@ -33,7 +33,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: ypxfr.c,v 1.9 1999/07/25 09:36:02 lukem Exp $");
+__RCSID("$NetBSD: ypxfr.c,v 1.10 2001/01/11 00:35:49 lukem Exp $");
#endif
#include <sys/types.h>
@@ -162,7 +162,7 @@
}
#ifdef DEBUG
- openlog(__progname, LOG_PID, LOG_DAEMON);
+ openlog("ypxfr", LOG_PID, LOG_DAEMON);
syslog(LOG_DEBUG, "ypxfr: Arguments:");
syslog(LOG_DEBUG, "YP clear to local: %s", (cflag) ? "no" : "yes");
@@ -185,7 +185,9 @@
goto punt;
}
+#ifdef DEBUG
syslog(LOG_DEBUG, "Get Master");
+#endif
if (host == NULL) {
if (srcdomain == NULL)
@@ -201,7 +203,9 @@
}
}
+#ifdef DEBUG
syslog(LOG_DEBUG, "Connect host: %s", host);
+#endif
client = yp_bind_host(host, YPPROG, YPVERS, 0, 1);
Home |
Main Index |
Thread Index |
Old Index