core/vm: update benchmark to use Errorf instead of Sprintf (#24845)

This commit is contained in:
aaronbuchwald authored and GitHub committed 2022-05-10 17:26:48 +03:00
1 parent 91751cbaa7
commit 52eb87d87c
1 file changed
+1 -1
+1 -1
View File
@@ -185,7 +185,7 @@ func benchmarkPrecompiled(addr string, test precompiledTest, bench *testing.B) {
return
}
if common.Bytes2Hex(res) != test.Expected {
bench.Error(fmt.Sprintf("Expected %v, got %v", test.Expected, common.Bytes2Hex(res)))
bench.Errorf("Expected %v, got %v", test.Expected, common.Bytes2Hex(res))
return
}
})