From 5b37d720e39037fec4e298c3ae44d6487f029f92 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Tue, 12 Sep 2023 18:46:45 -0700 Subject: all: stop using fmt.Sprintf in t.Error/t.Fatal Change-Id: Id63e1e5ae7e225e4a6a721673bf2d43b6c398c25 Reviewed-on: https://go-review.googlesource.com/c/go/+/527701 Reviewed-by: Ian Lance Taylor Auto-Submit: Ian Lance Taylor Reviewed-by: Bryan Mills TryBot-Result: Gopher Robot Run-TryBot: Ian Lance Taylor --- src/cmd/internal/obj/ppc64/asm_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cmd') diff --git a/src/cmd/internal/obj/ppc64/asm_test.go b/src/cmd/internal/obj/ppc64/asm_test.go index b8995dc7e1..433df5c8aa 100644 --- a/src/cmd/internal/obj/ppc64/asm_test.go +++ b/src/cmd/internal/obj/ppc64/asm_test.go @@ -198,11 +198,11 @@ func TestPfxAlign(t *testing.T) { t.Errorf("Failed to compile %v: %v\n", pgm, err) } if !strings.Contains(string(out), pgm.align) { - t.Errorf(fmt.Sprintf("Fatal, misaligned text with prefixed instructions:\n%s\n", string(out))) + t.Errorf("Fatal, misaligned text with prefixed instructions:\n%s", out) } hasNop := strings.Contains(string(out), "00 00 00 60") if hasNop != pgm.hasNop { - t.Errorf(fmt.Sprintf("Fatal, prefixed instruction is missing nop padding:\n%s\n", string(out))) + t.Errorf("Fatal, prefixed instruction is missing nop padding:\n%s", out) } } } -- cgit v1.3-5-g9baa