Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/ktruss check of signal number of was backwards.



details:   https://anonhg.NetBSD.org/src/rev/3f2d293fa878
branches:  trunk
changeset: 968167:3f2d293fa878
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sat Jan 04 22:22:34 2020 +0000

description:
check of signal number of was backwards.

diffstat:

 usr.bin/ktruss/dump.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r a89f317f0157 -r 3f2d293fa878 usr.bin/ktruss/dump.c
--- a/usr.bin/ktruss/dump.c     Sat Jan 04 22:05:52 2020 +0000
+++ b/usr.bin/ktruss/dump.c     Sat Jan 04 22:22:34 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dump.c,v 1.45 2020/01/04 22:05:52 mlelstv Exp $        */
+/*     $NetBSD: dump.c,v 1.46 2020/01/04 22:22:34 mlelstv Exp $        */
 
 /*-
  * Copyright (c) 1988, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)kdump.c    8.4 (Berkeley) 4/28/95";
 #endif
-__RCSID("$NetBSD: dump.c,v 1.45 2020/01/04 22:05:52 mlelstv Exp $");
+__RCSID("$NetBSD: dump.c,v 1.46 2020/01/04 22:22:34 mlelstv Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -559,9 +559,9 @@
 
        case SYS_compat_16___sigaction14 :
                if ((int)*ap < 0 || (int)*ap >= MAXSIGNALS)
-                       xwprintf("(%s", signals[(int)*ap].name);
+                       xwprintf("(%d", (int)*ap);
                else
-                       xwprintf("(%d", (int)*ap);
+                       xwprintf("(%s", signals[(int)*ap].name);
                ap++;
                argsize -= sizeof(register_t);
                break;



Home | Main Index | Thread Index | Old Index