summaryrefslogtreecommitdiff
path: root/usr.sbin/ypserv/ypxfr
diff options
context:
space:
mode:
authorchuck <chuck@cvs.openbsd.org>1996-01-20 00:38:50 +0000
committerchuck <chuck@cvs.openbsd.org>1996-01-20 00:38:50 +0000
commita96be2810c5c31c10b63dac3caf5470b19b1f22f (patch)
tree028e6d2d287c7624bf4e3c417ae8f8435f502ec9 /usr.sbin/ypserv/ypxfr
parent804c7befd3754ae69f5ee0ddc11dbe5fc5f5532a (diff)
use new yplog function
Diffstat (limited to 'usr.sbin/ypserv/ypxfr')
-rw-r--r--usr.sbin/ypserv/ypxfr/ypxfr.c44
1 files changed, 17 insertions, 27 deletions
diff --git a/usr.sbin/ypserv/ypxfr/ypxfr.c b/usr.sbin/ypserv/ypxfr/ypxfr.c
index 7e7c92cb5dc..ce11e13321e 100644
--- a/usr.sbin/ypserv/ypxfr/ypxfr.c
+++ b/usr.sbin/ypserv/ypxfr/ypxfr.c
@@ -28,7 +28,7 @@
*/
#ifndef LINT
-static char rcsid[] = "$Id: ypxfr.c,v 1.1 1995/11/01 16:56:43 deraadt Exp $";
+static char rcsid[] = "$Id: ypxfr.c,v 1.2 1996/01/20 00:38:49 chuck Exp $";
#endif
#include <stdio.h>
@@ -206,7 +206,7 @@ char *temp_map;
return db;
- yplog_str("Open DB "); yplog_cat(db_temp); yplog_cat("\n");
+ yplog("Open DB %s", db_temp);
}
int
@@ -488,29 +488,19 @@ char *argv[];
}
if (status > 0) {
- yplog_init(progname);
-
- yplog_date("Arguments:");
- yplog_str("YP clear to local: ");
- if (cflag) {
- yplog_cat("no\n");
- } else {
- yplog_cat("yes\n");
- }
- yplog_str(" Force transfer: ");
- if (fflag) {
- yplog_cat("yes\n");
- } else {
- yplog_cat("no\n");
- }
- yplog_str(" domain: "); yplog_cat(domain); yplog_cat("\n");
- yplog_str(" host: "); yplog_cat(host); yplog_cat("\n");
- yplog_str(" source domain: "); yplog_cat(srcdomain); yplog_cat("\n");
- yplog_str(" transid: "); yplog_cat(tid); yplog_cat("\n");
- yplog_str(" prog: "); yplog_cat(prog); yplog_cat("\n");
- yplog_str(" port: "); yplog_cat(port); yplog_cat("\n");
- yplog_str(" ipadd: "); yplog_cat(ipadd); yplog_cat("\n");
- yplog_str(" map: "); yplog_cat(map); yplog_cat("\n\n");
+ ypopenlog();
+
+ yplog("ypxfr: Arguments:");
+ yplog("YP clear to local: %s", (cflag) ? "no" : "yes");
+ yplog(" Force transfer: %s", (fflag) ? "yes" : "no");
+ yplog(" domain: %s", domain);
+ yplog(" host: %s", host);
+ yplog(" source domain: %s", srcdomain);
+ yplog(" transid: %s", tid);
+ yplog(" prog: %s", prog);
+ yplog(" port: %s", port);
+ yplog(" ipadd: %s", ipadd);
+ yplog(" map: %s", map);
if(fflag != 0) {
ordernum = 0;
@@ -521,7 +511,7 @@ char *argv[];
if (status > 0) {
- yplog_str("Get Master\n");
+ yplog("Get Master");
if (host == NULL) {
if (srcdomain == NULL) {
@@ -539,7 +529,7 @@ char *argv[];
if (status > 0) {
- yplog_str("Connect host: "); yplog_cat(host); yplog_cat("\n");
+ yplog("Connect host: %s", host);
client = yp_bind_host(host,YPPROG,YPVERS,0);