HTTP load generator, ApacheBench (ab) replacement
Go
Fix the broken fmt.Fprintf calls
JBDa730114f7a0f
diff --git a/hey.go b/hey.goindex f727e26..38e9583 100644--- a/hey.go+++ b/hey.go@@ -253,14 +253,14 @@ func main() {}func errAndExit(msg string) {- fmt.Fprintf(os.Stderr, msg)+ fmt.Fprintf(os.Stderr, "%s", msg)fmt.Fprintf(os.Stderr, "\n")os.Exit(1)}func usageAndExit(msg string) {if msg != "" {- fmt.Fprintf(os.Stderr, msg)+ fmt.Fprintf(os.Stderr, "%s", msg)fmt.Fprintf(os.Stderr, "\n\n")}flag.Usage()diff --git a/requester/report.go b/requester/report.goindex d281054..b6bf6b1 100644--- a/requester/report.go+++ b/requester/report.go@@ -131,7 +131,7 @@ func (r *report) print() {log.Println("error:", err.Error())return}- r.printf(buf.String())+ r.printf("%s", buf.String())r.printf("\n")}