aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/pack
diff options
context:
space:
mode:
authorDave Cheney <dave@cheney.net>2014-04-03 09:58:10 +1100
committerDave Cheney <dave@cheney.net>2014-04-03 09:58:10 +1100
commit1aaea50c766a6bde8bebade9be745a371119082d (patch)
tree09f7c393e8fe84bbc94fa58e90846e8fe3ddc3cf /src/cmd/pack
parent84db9e09d9e3ff7db8aa8c49282487beacecea07 (diff)
downloadgo-1aaea50c766a6bde8bebade9be745a371119082d.tar.gz
go-1aaea50c766a6bde8bebade9be745a371119082d.zip
cmd/pack: fix format string error in log message
Fixes #7693. pack.go:347: possible formatting directive in Fatal call LGTM=iant R=golang-codereviews, iant CC=golang-codereviews https://golang.org/cl/83310045
Diffstat (limited to 'src/cmd/pack')
-rw-r--r--src/cmd/pack/pack.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/pack/pack.go b/src/cmd/pack/pack.go
index 7276083264..ce73164171 100644
--- a/src/cmd/pack/pack.go
+++ b/src/cmd/pack/pack.go
@@ -344,7 +344,7 @@ func (ar *Archive) addFile(fd FileLike) {
log.Fatal("writing file: ", err)
}
if n64 != info.Size() {
- log.Fatal("writing file: wrote %d bytes; file is size %d", n64, info.Size())
+ log.Fatalf("writing file: wrote %d bytes; file is size %d", n64, info.Size())
}
ar.endFile()
}