Commit 424c2157 authored by Hana Kim's avatar Hana Kim Committed by Hyang-Ah Hana Kim

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/115595Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 6b4828a2
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment