Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/inetd Use base 10 when logging the exit status or e...



details:   https://anonhg.NetBSD.org/src/rev/960289b81be6
branches:  trunk
changeset: 328525:960289b81be6
user:      khorben <khorben%NetBSD.org@localhost>
date:      Sat Apr 05 23:36:10 2014 +0000

description:
Use base 10 when logging the exit status or exit signal for sub-processes,
instead of hexadecimal.

diffstat:

 usr.sbin/inetd/inetd.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r 4e60f02f28cc -r 960289b81be6 usr.sbin/inetd/inetd.c
--- a/usr.sbin/inetd/inetd.c    Sat Apr 05 23:33:15 2014 +0000
+++ b/usr.sbin/inetd/inetd.c    Sat Apr 05 23:36:10 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: inetd.c,v 1.121 2012/12/13 19:38:40 christos Exp $     */
+/*     $NetBSD: inetd.c,v 1.122 2014/04/05 23:36:10 khorben Exp $      */
 
 /*-
  * Copyright (c) 1998, 2003 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
 #if 0
 static char sccsid[] = "@(#)inetd.c    8.4 (Berkeley) 4/13/94";
 #else
-__RCSID("$NetBSD: inetd.c,v 1.121 2012/12/13 19:38:40 christos Exp $");
+__RCSID("$NetBSD: inetd.c,v 1.122 2014/04/05 23:36:10 khorben Exp $");
 #endif
 #endif /* not lint */
 
@@ -762,11 +762,11 @@
 
                                if (WIFEXITED(status) && WEXITSTATUS(status))
                                        syslog(LOG_WARNING,
-                                           "%s: exit status 0x%x",
+                                           "%s: exit status %u",
                                            sep->se_server, WEXITSTATUS(status));
                                else if (WIFSIGNALED(status))
                                        syslog(LOG_WARNING,
-                                           "%s: exit signal 0x%x",
+                                           "%s: exit signal %u",
                                            sep->se_server, WTERMSIG(status));
                                sep->se_wait = 1;
                                ev = allocchange();



Home | Main Index | Thread Index | Old Index