From: chuck Date: Sat, 20 Jan 1996 00:38:49 +0000 (+0000) Subject: use new yplog function X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4bfeeb6f7a8e414387e6e6231612e64b5ce32397;p=openbsd use new yplog function --- 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 @@ -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);