aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Bleecher Snyder <josharian@gmail.com>2021-02-24 11:48:09 -0800
committerJosh Bleecher Snyder <josharian@gmail.com>2021-02-24 20:23:56 +0000
commit6c3f8a2f4730f005850be7fde3a3dac6dc5323a6 (patch)
tree3f8ce6b57dc419b22c62bd9697f0e5eb9f68dd28
parent3ee32439b5114c1fe5f04891b678613aa72e13c2 (diff)
downloadgo-6c3f8a2f4730f005850be7fde3a3dac6dc5323a6.tar.gz
go-6c3f8a2f4730f005850be7fde3a3dac6dc5323a6.zip
cmd/link: use ctxt.Logf instead of package log
Fixes #43601 Change-Id: I28b745cb92932d875a66f64c63355650a092f096 Reviewed-on: https://go-review.googlesource.com/c/go/+/296029 Trust: Josh Bleecher Snyder <josharian@gmail.com> Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> Reviewed-by: Cherry Zhang <cherryyz@google.com> TryBot-Result: Go Bot <gobot@golang.org>
-rw-r--r--src/cmd/link/internal/ld/config.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cmd/link/internal/ld/config.go b/src/cmd/link/internal/ld/config.go
index 481dc67475..291b28e11c 100644
--- a/src/cmd/link/internal/ld/config.go
+++ b/src/cmd/link/internal/ld/config.go
@@ -8,7 +8,6 @@ import (
"cmd/internal/objabi"
"cmd/internal/sys"
"fmt"
- "log"
)
// A BuildMode indicates the sort of object we are building.
@@ -181,7 +180,7 @@ func mustLinkExternal(ctxt *Link) (res bool, reason string) {
if ctxt.Debugvlog > 1 {
defer func() {
if res {
- log.Printf("external linking is forced by: %s\n", reason)
+ ctxt.Logf("external linking is forced by: %s\n", reason)
}
}()
}