diff --git a/core/vm/contracts_test.go b/core/vm/contracts_test.go index 1a03f93fc2..22fe467c3f 100644 --- a/core/vm/contracts_test.go +++ b/core/vm/contracts_test.go @@ -618,7 +618,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 } })