From 7412a632e09626698f290fd1eea76c98544b335c Mon Sep 17 00:00:00 2001 From: Alexander Potapenko Date: Tue, 30 Apr 2024 12:55:29 +0200 Subject: pkg/ifuzz: use "% x" to print the instruction sequence that causes an error It is just more readable than %v. --- pkg/ifuzz/ifuzz_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/ifuzz') diff --git a/pkg/ifuzz/ifuzz_test.go b/pkg/ifuzz/ifuzz_test.go index 38863cdbd..cd87b7355 100644 --- a/pkg/ifuzz/ifuzz_test.go +++ b/pkg/ifuzz/ifuzz_test.go @@ -143,7 +143,7 @@ func testGenerate(t *testing.T, arch string) { for len(text) != 0 { size, err := insnset.Decode(mode, text) if size == 0 || err != nil { - t.Errorf("failed to decode text: %v", text) + t.Errorf("failed to decode text: % x", text) break } text = text[size:] -- cgit mrf-deployment