aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/vendor/github.com/google/pprof/profile
diff options
context:
space:
mode:
authorsmasher164 <aindurti@gmail.com>2020-02-27 02:42:28 -0500
committerIan Lance Taylor <iant@golang.org>2020-03-09 20:45:44 +0000
commitd49fecc474d04a04d1d22851c06099338abd4391 (patch)
treef7e59e11f275b05b077e977fc393a1e10a6440b1 /src/cmd/vendor/github.com/google/pprof/profile
parent5fac45a320561b45b52cdcae933882a70699a21d (diff)
downloadgo-d49fecc474d04a04d1d22851c06099338abd4391.tar.xz
std,cmd: update x/net and github.com/google/pprof
Re-vendor x/net/dns/dnsmessage, x/net/route, and github.com/google/pprof (commit 1ebb73c). The updated dependencies fix the string(int) conversions, in preparation for the vet warning. Updates #32479. Change-Id: I023a4e30415d060f8b403b9943fe911f6d19f2e9 Reviewed-on: https://go-review.googlesource.com/c/go/+/221337 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/cmd/vendor/github.com/google/pprof/profile')
-rw-r--r--src/cmd/vendor/github.com/google/pprof/profile/proto.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cmd/vendor/github.com/google/pprof/profile/proto.go b/src/cmd/vendor/github.com/google/pprof/profile/proto.go
index e7df33ac2b..539ad3ab33 100644
--- a/src/cmd/vendor/github.com/google/pprof/profile/proto.go
+++ b/src/cmd/vendor/github.com/google/pprof/profile/proto.go
@@ -33,7 +33,10 @@
package profile
-import "errors"
+import (
+ "errors"
+ "fmt"
+)
type buffer struct {
field int // field tag
@@ -235,7 +238,7 @@ func decodeField(b *buffer, data []byte) ([]byte, error) {
b.u64 = uint64(le32(data[:4]))
data = data[4:]
default:
- return nil, errors.New("unknown wire type: " + string(b.typ))
+ return nil, fmt.Errorf("unknown wire type: %d", b.typ)
}
return data, nil