From 562b7c27ecd9320855e8c89d41fb9a549d93ff34 Mon Sep 17 00:00:00 2001 From: Caleb Spare Date: Wed, 24 Apr 2019 12:09:15 -0700 Subject: [PATCH] testing: fix minor bug with mutex profile error message Change-Id: I92b7a44476cfd9e2f099477b9d7903bbaa2fd8da Reviewed-on: https://go-review.googlesource.com/c/go/+/173720 Run-TryBot: Caleb Spare Reviewed-by: Brad Fitzpatrick TryBot-Result: Gobot Gobot --- src/testing/testing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/testing/testing.go b/src/testing/testing.go index 8cbb4318fc..a4681ab95a 100644 --- a/src/testing/testing.go +++ b/src/testing/testing.go @@ -1287,7 +1287,7 @@ func (m *M) writeProfiles() { os.Exit(2) } if err = m.deps.WriteProfileTo("mutex", f, 0); err != nil { - fmt.Fprintf(os.Stderr, "testing: can't write %s: %s\n", *blockProfile, err) + fmt.Fprintf(os.Stderr, "testing: can't write %s: %s\n", *mutexProfile, err) os.Exit(2) } f.Close() -- 2.50.0