aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/ifuzz
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2024-04-30 12:55:29 +0200
committerAlexander Potapenko <glider@google.com>2024-04-30 13:24:04 +0000
commit7412a632e09626698f290fd1eea76c98544b335c (patch)
tree97a809d4faf0f72506477ba6a74c7beb38d43ae5 /pkg/ifuzz
parent3ce4924c386b24ce0dea10478efdecc852cda540 (diff)
pkg/ifuzz: use "% x" to print the instruction sequence that causes an error
It is just more readable than %v.
Diffstat (limited to 'pkg/ifuzz')
-rw-r--r--pkg/ifuzz/ifuzz_test.go2
1 files changed, 1 insertions, 1 deletions
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:]