From f0d99def5b8919292a76b19dfdaf601e25dc6157 Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Tue, 29 Dec 2020 10:08:30 -0800 Subject: [PATCH] [dev.regabi] cmd/compile: add newline to ir.Dump If you do two ir.Dumps in a row, there's no newline between them. Change-Id: I1a80dd22da68cb677eb9abd7a50571ea33584010 Reviewed-on: https://go-review.googlesource.com/c/go/+/280672 Trust: Keith Randall Reviewed-by: Matthew Dempsky --- src/cmd/compile/internal/ir/fmt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/compile/internal/ir/fmt.go b/src/cmd/compile/internal/ir/fmt.go index ea6b5856df..6209702291 100644 --- a/src/cmd/compile/internal/ir/fmt.go +++ b/src/cmd/compile/internal/ir/fmt.go @@ -978,7 +978,7 @@ func (l Nodes) Format(s fmt.State, verb rune) { // Dump prints the message s followed by a debug dump of n. func Dump(s string, n Node) { - fmt.Printf("%s [%p]%+v", s, n, n) + fmt.Printf("%s [%p]%+v\n", s, n, n) } // DumpList prints the message s followed by a debug dump of each node in the list. -- 2.50.0