Module Name:    src
Committed By:   rillig
Date:           Thu May 26 11:54:33 UTC 2022

Modified Files:
        src/usr.bin/xlint/lint1: debug.c

Log Message:
lint: add missing newlines in debug_node


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/usr.bin/xlint/lint1/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/xlint/lint1/debug.c
diff -u src/usr.bin/xlint/lint1/debug.c:1.18 src/usr.bin/xlint/lint1/debug.c:1.19
--- src/usr.bin/xlint/lint1/debug.c:1.18	Fri May 20 21:18:55 2022
+++ src/usr.bin/xlint/lint1/debug.c	Thu May 26 11:54:33 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: debug.c,v 1.18 2022/05/20 21:18:55 rillig Exp $ */
+/* $NetBSD: debug.c,v 1.19 2022/05/26 11:54:33 rillig Exp $ */
 
 /*-
  * Copyright (c) 2021 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID)
-__RCSID("$NetBSD: debug.c,v 1.18 2022/05/20 21:18:55 rillig Exp $");
+__RCSID("$NetBSD: debug.c,v 1.19 2022/05/26 11:54:33 rillig Exp $");
 #endif
 
 #include <stdlib.h>
@@ -128,7 +128,7 @@ debug_node(const tnode_t *tn) // NOLINT(
 		debug_printf(" %s %s\n", tn->tn_sym->s_name,
 		    storage_class_name(tn->tn_sym->s_scl));
 	else if (op == CON && is_floating(tn->tn_type->t_tspec))
-		debug_printf(", value %Lg", tn->tn_val->v_ldbl);
+		debug_printf(", value %Lg\n", tn->tn_val->v_ldbl);
 	else if (op == CON && is_uinteger(tn->tn_type->t_tspec))
 		debug_printf(", value %llu\n",
 		    (unsigned long long)tn->tn_val->v_quad);
@@ -148,7 +148,7 @@ debug_node(const tnode_t *tn) // NOLINT(
 		size_t n = MB_CUR_MAX * (tn->tn_string->st_len + 1);
 		char *s = xmalloc(n);
 		(void)wcstombs(s, tn->tn_string->st_mem, n);
-		debug_printf(", length %zu, L\"%s\"",
+		debug_printf(", length %zu, L\"%s\"\n",
 		    tn->tn_string->st_len, s);
 		free(s);
 

Reply via email to