Module Name:    src
Committed By:   rillig
Date:           Wed Jun  7 15:25:09 UTC 2023

Modified Files:
        src/usr.bin/indent: debug.c

Log Message:
indent: send all debug output to the same stream


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/usr.bin/indent/debug.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/indent/debug.c
diff -u src/usr.bin/indent/debug.c:1.37 src/usr.bin/indent/debug.c:1.38
--- src/usr.bin/indent/debug.c:1.37	Tue Jun  6 05:11:11 2023
+++ src/usr.bin/indent/debug.c	Wed Jun  7 15:25:08 2023
@@ -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

Reply via email to