aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/pprof
diff options
context:
space:
mode:
authorHana Kim <hakim@google.com>2018-05-31 13:16:24 -0400
committerHyang-Ah Hana Kim <hyangah@gmail.com>2018-05-31 17:29:10 +0000
commit424c2157392d46220213610a290a275c36ddcd97 (patch)
tree55aa15789ed57fbe65b18c5c9040167019106911 /src/cmd/pprof
parent6b4828a206c2c5a5b6bf3cd4bd92b9530ecca5e5 (diff)
downloadgo-424c2157392d46220213610a290a275c36ddcd97.tar.gz
go-424c2157392d46220213610a290a275c36ddcd97.zip
cmd/pprof: fix help message formatting error
Pprof usage message includes "%" symbols. Misuse of Fprintf caused the message to be interpreted as a format string and corrupted the usage message. Change-Id: I4732b491e2368cff9fdbfe070c125228d6f506fd Reviewed-on: https://go-review.googlesource.com/115595 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/cmd/pprof')
-rw-r--r--src/cmd/pprof/readlineui.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/pprof/readlineui.go b/src/cmd/pprof/readlineui.go
index 67fb7aa49c..6e91816f9b 100644
--- a/src/cmd/pprof/readlineui.go
+++ b/src/cmd/pprof/readlineui.go
@@ -86,7 +86,7 @@ func (r *readlineUI) print(withColor bool, args ...interface{}) {
if withColor {
text = colorize(text)
}
- fmt.Fprintf(r.term, text)
+ fmt.Fprint(r.term, text)
}
// colorize prints the msg in red using ANSI color escapes.