Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/indent indent: send all debug output to the same stream



details:   https://anonhg.NetBSD.org/src/rev/a254848508d8
branches:  trunk
changeset: 376262:a254848508d8
user:      rillig <rillig%NetBSD.org@localhost>
date:      Wed Jun 07 15:25:08 2023 +0000

description:
indent: send all debug output to the same stream

diffstat:

 usr.bin/indent/debug.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (31 lines):

diff -r 9add8bc9f30b -r a254848508d8 usr.bin/indent/debug.c
--- a/usr.bin/indent/debug.c    Wed Jun 07 13:50:04 2023 +0000
+++ b/usr.bin/indent/debug.c    Wed Jun 07 15:25:08 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: debug.c,v 1.37 2023/06/06 05:11:11 rillig Exp $        */
+/*     $NetBSD: debug.c,v 1.38 2023/06/07 15:25:08 rillig Exp $        */
 
 /*-
  * Copyright (c) 2023 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: debug.c,v 1.37 2023/06/06 05:11:11 rillig Exp $");
+__RCSID("$NetBSD: debug.c,v 1.38 2023/06/07 15:25:08 rillig Exp $");
 
 #include <stdarg.h>
 
@@ -358,9 +358,9 @@ debug_parser_state(void)
 void
 debug_parse_stack(const char *situation)
 {
-       printf("parse stack %s:", situation);
+       debug_printf("parse stack %s:", situation);
        for (int i = 0; i <= ps.tos; ++i)
-               printf(" %d %s", ps.s_ind_level[i], psym_name[ps.s_sym[i]]);
-       printf("\n");
+               debug_printf(" %d %s", ps.s_ind_level[i], psym_name[ps.s_sym[i]]);
+       debug_println("");
 }
 #endif



Home | Main Index | Thread Index | Old Index