Source-Changes-HG archive

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

[src/trunk]: src/external/gpl2/xcvs/dist/src Use LOG_ERR instead of LOG_EMERG...



details:   https://anonhg.NetBSD.org/src/rev/04ca7d154f2b
branches:  trunk
changeset: 786246:04ca7d154f2b
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Sun Apr 21 19:34:13 2013 +0000

description:
Use LOG_ERR instead of LOG_EMERG, as LOG_EMERG causes syslogd to tell all
ttys.

diffstat:

 external/gpl2/xcvs/dist/src/error.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (36 lines):

diff -r bd5d10f72f9b -r 04ca7d154f2b external/gpl2/xcvs/dist/src/error.c
--- a/external/gpl2/xcvs/dist/src/error.c       Sun Apr 21 18:41:32 2013 +0000
+++ b/external/gpl2/xcvs/dist/src/error.c       Sun Apr 21 19:34:13 2013 +0000
@@ -208,7 +208,7 @@
      *   with the message here.
      */
 #if HAVE_SYSLOG_H
-    syslog (LOG_DAEMON | LOG_EMERG, "Memory exhausted.  Aborting.");
+    syslog (LOG_DAEMON | LOG_ERR, "Memory exhausted.  Aborting.");
 #endif /* HAVE_SYSLOG_H */
 
     goto sidestep_done;
@@ -219,18 +219,18 @@
      * error while attempting to send the last error message to the client.
      */
 
-    syslog (LOG_DAEMON | LOG_EMERG,
+    syslog (LOG_DAEMON | LOG_ERR,
            "error (%d, %d) called recursively.  Original message was:",
            last_status, last_errnum);
-    syslog (LOG_DAEMON | LOG_EMERG, "%s", last_message);
+    syslog (LOG_DAEMON | LOG_ERR, "%s", last_message);
 
 
-    syslog (LOG_DAEMON | LOG_EMERG,
+    syslog (LOG_DAEMON | LOG_ERR,
             "error (%d, %d) called recursively.  Second message was:",
            status, errnum);
-    syslog (LOG_DAEMON | LOG_EMERG, "%s", buf2);
+    syslog (LOG_DAEMON | LOG_ERR, "%s", buf2);
 
-    syslog (LOG_DAEMON | LOG_EMERG, "Aborting.");
+    syslog (LOG_DAEMON | LOG_ERR, "Aborting.");
 #endif /* HAVE_SYSLOG_H */
 
 sidestep_done:



Home | Main Index | Thread Index | Old Index