aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2018-05-26 18:23:33 +0700
committerShulhan <ms@kilabit.info>2018-05-26 18:23:33 +0700
commitc0128319b67e6222a9e12178b7e877e3fba98cda (patch)
tree4ee2d6b63801967bf1968eda14dd30a65a628b31
parent14c12f3196ebe5bb91acac2d6dc4937eb801dadf (diff)
downloadbeku-c0128319b67e6222a9e12178b7e877e3fba98cda.tar.xz
[lint] Fix lint warnings on Printf format
-rw-r--r--cmd/beku/command.go2
-rw-r--r--env.go5
2 files changed, 4 insertions, 3 deletions
diff --git a/cmd/beku/command.go b/cmd/beku/command.go
index 29ba373..4bd8b78 100644
--- a/cmd/beku/command.go
+++ b/cmd/beku/command.go
@@ -268,7 +268,7 @@ func newCommand() (cmd *command, err error) {
}
if beku.Debug >= beku.DebugL2 {
- fmt.Printf("Environment: %s", cmd.env)
+ fmt.Printf("Environment: %s", cmd.env.String())
}
return
diff --git a/env.go b/env.go
index 70e6c8c..927b513 100644
--- a/env.go
+++ b/env.go
@@ -627,7 +627,7 @@ func (env *Env) String() string {
`, env.dirSrc, env.pkgsStd)
for x := 0; x < len(env.pkgs); x++ {
- fmt.Fprintf(&buf, "%s", env.pkgs[x])
+ fmt.Fprintf(&buf, "%s", env.pkgs[x].String())
}
fmt.Fprintf(&buf, "\n[package \"_missing_\"]\n")
@@ -674,7 +674,8 @@ func (env *Env) update(curPkg, newPkg *Package) (ok bool, err error) {
return
}
- fmt.Printf("Updating package from,\n%s\nto,\n%s\n", curPkg, newPkg)
+ fmt.Printf("Updating package from,\n%s\nto,\n%s\n", curPkg.String(),
+ newPkg.String())
ok = confirm(os.Stdin, msgUpdateView, false)
if ok {