Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/ypbind use LOG_WARNING for warnings and LOG_ERR for...



details:   https://anonhg.NetBSD.org/src/rev/9952543dea93
branches:  trunk
changeset: 502050:9952543dea93
user:      lukem <lukem%NetBSD.org@localhost>
date:      Thu Jan 11 01:47:55 2001 +0000

description:
use LOG_WARNING for warnings and LOG_ERR for fatal errors

diffstat:

 usr.sbin/ypbind/ypbind.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 8494ee56ef0e -r 9952543dea93 usr.sbin/ypbind/ypbind.c
--- a/usr.sbin/ypbind/ypbind.c  Thu Jan 11 01:45:07 2001 +0000
+++ b/usr.sbin/ypbind/ypbind.c  Thu Jan 11 01:47:55 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ypbind.c,v 1.44 2000/12/20 01:34:39 cgd Exp $  */
+/*     $NetBSD: ypbind.c,v 1.45 2001/01/11 01:47:55 lukem Exp $        */
 
 /*
  * Copyright (c) 1992, 1993 Theo de Raadt <deraadt%fsa.ca@localhost>
@@ -34,7 +34,7 @@
 
 #include <sys/cdefs.h>
 #ifndef LINT
-__RCSID("$NetBSD: ypbind.c,v 1.44 2000/12/20 01:34:39 cgd Exp $");
+__RCSID("$NetBSD: ypbind.c,v 1.45 2001/01/11 01:47:55 lukem Exp $");
 #endif
 
 #include <sys/param.h>
@@ -902,7 +902,7 @@
                    "%s/%s%s", BINDINGDIR, domainname, YPSERVERSSUFF);
                df = fopen(ypservers_path, "r");
                if (df == NULL) {
-                       yp_log(LOG_WARNING, "%s: ", ypservers_path);
+                       yp_log(LOG_ERR, "%s: ", ypservers_path);
                        exit(1);
                }
        }
@@ -930,7 +930,7 @@
                        continue;
                hp = gethostbyname(p);
                if (!hp) {
-                       yp_log(LOG_ERR, "%s: %s", p, hstrerror(h_errno));
+                       yp_log(LOG_WARNING, "%s: %s", p, hstrerror(h_errno));
                        continue;
                }
                /* step through all addresses in case first is unavailable */
@@ -946,7 +946,7 @@
                }
        }
        if (!count) {
-               yp_log(LOG_ERR, "no contactable servers found in %s",
+               yp_log(LOG_WARNING, "no contactable servers found in %s",
                    ypservers_path);
                return -1;
        }



Home | Main Index | Thread Index | Old Index