Source-Changes-HG archive

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

[src/trunk]: src/libexec use LOG_WARNING instead of LOG_ERR for non critical ...



details:   https://anonhg.NetBSD.org/src/rev/f611ecf05049
branches:  trunk
changeset: 501981:f611ecf05049
user:      lukem <lukem%NetBSD.org@localhost>
date:      Wed Jan 10 01:50:05 2001 +0000

description:
use LOG_WARNING instead of LOG_ERR for non critical errors

diffstat:

 libexec/rpc.rquotad/rquotad.c     |  14 ++++++++------
 libexec/rpc.rusersd/rusers_proc.c |  10 +++++-----
 2 files changed, 13 insertions(+), 11 deletions(-)

diffs (95 lines):

diff -r 7d2ce311e10d -r f611ecf05049 libexec/rpc.rquotad/rquotad.c
--- a/libexec/rpc.rquotad/rquotad.c     Wed Jan 10 01:41:38 2001 +0000
+++ b/libexec/rpc.rquotad/rquotad.c     Wed Jan 10 01:50:05 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rquotad.c,v 1.16 2000/06/03 20:57:40 fvdl Exp $        */
+/*     $NetBSD: rquotad.c,v 1.17 2001/01/10 01:50:05 lukem Exp $       */
 
 /*
  * by Manuel Bouyer (bouyer%ensta.fr@localhost)
@@ -8,7 +8,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: rquotad.c,v 1.16 2000/06/03 20:57:40 fvdl Exp $");
+__RCSID("$NetBSD: rquotad.c,v 1.17 2001/01/10 01:50:05 lukem Exp $");
 #endif
 
 #include <sys/param.h>
@@ -203,9 +203,9 @@
        name = (char *)inet_ntoa(caller->sin_addr);
        errno = save_errno;
        if (errno == 0)
-               syslog(LOG_ERR, "couldn't send reply to %s", name);
+               syslog(LOG_WARNING, "couldn't send reply to %s", name);
        else
-               syslog(LOG_ERR, "couldn't send reply to %s: %m", name);
+               syslog(LOG_WARNING, "couldn't send reply to %s: %m", name);
 }
 
 /* initialise the fs_tab list from entries in /etc/fstab */
@@ -279,7 +279,8 @@
                        return (1);
 
                if ((fd = open(fs->qfpathname, O_RDONLY)) < 0) {
-                       syslog(LOG_ERR, "open error: %s: %m", fs->qfpathname);
+                       syslog(LOG_WARNING, "open error: %s: %m",
+                           fs->qfpathname);
                        return (0);
                }
                if (lseek(fd, (off_t)(id * sizeof(struct dqblk)), SEEK_SET)
@@ -300,7 +301,8 @@
                        ret = 1;
                        break;
                default:        /* ERROR */
-                       syslog(LOG_ERR, "read error: %s: %m", fs->qfpathname);
+                       syslog(LOG_WARNING, "read error: %s: %m",
+                           fs->qfpathname);
                        close(fd);
                        return (0);
                }
diff -r 7d2ce311e10d -r f611ecf05049 libexec/rpc.rusersd/rusers_proc.c
--- a/libexec/rpc.rusersd/rusers_proc.c Wed Jan 10 01:41:38 2001 +0000
+++ b/libexec/rpc.rusersd/rusers_proc.c Wed Jan 10 01:50:05 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rusers_proc.c,v 1.22 2000/06/03 19:06:25 fvdl Exp $    */
+/*     $NetBSD: rusers_proc.c,v 1.23 2001/01/10 01:54:39 lukem Exp $   */
 
 /*-
  *  Copyright (c) 1993 John Brezak
@@ -30,7 +30,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: rusers_proc.c,v 1.22 2000/06/03 19:06:25 fvdl Exp $");
+__RCSID("$NetBSD: rusers_proc.c,v 1.23 2001/01/10 01:54:39 lukem Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -217,7 +217,7 @@
 
        ufp = fopen(_PATH_UTMP, "r");
        if (!ufp) {
-               syslog(LOG_ERR, "%m");
+               syslog(LOG_WARNING, "%m");
                return (0);
        }
 
@@ -250,7 +250,7 @@
        
        ufp = fopen(_PATH_UTMP, "r");
        if (!ufp) {
-               syslog(LOG_ERR, "%m");
+               syslog(LOG_WARNING, "%m");
                return (NULL);
        }
 
@@ -314,7 +314,7 @@
        
        ufp = fopen(_PATH_UTMP, "r");
        if (!ufp) {
-               syslog(LOG_ERR, "%m");
+               syslog(LOG_WARNING, "%m");
                return (NULL);
        }
 



Home | Main Index | Thread Index | Old Index