diff options
| author | Chris Lu <chris.lu@gmail.com> | 2014-04-17 00:16:44 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2014-04-17 00:16:44 -0700 |
| commit | 3b5035c468626af9ba052afaaa16a8cd3598423e (patch) | |
| tree | 5949edc5a243888d79fea90272e1a95270b4a7ab /go/weed | |
| parent | 51939efeac635d0ba8b683cae6176aa60845b5f7 (diff) | |
| download | seaweedfs-3b5035c468626af9ba052afaaa16a8cd3598423e.tar.xz seaweedfs-3b5035c468626af9ba052afaaa16a8cd3598423e.zip | |
1. v0.54
2. go vet found many printing format errors
Diffstat (limited to 'go/weed')
| -rw-r--r-- | go/weed/export.go | 2 | ||||
| -rw-r--r-- | go/weed/server.go | 2 | ||||
| -rw-r--r-- | go/weed/shell.go | 1 | ||||
| -rw-r--r-- | go/weed/volume.go | 2 |
4 files changed, 3 insertions, 4 deletions
diff --git a/go/weed/export.go b/go/weed/export.go index ef14e19c0..dae6053c7 100644 --- a/go/weed/export.go +++ b/go/weed/export.go @@ -94,7 +94,7 @@ func runExport(cmd *Command, args []string) bool { nm, err := storage.LoadNeedleMap(indexFile) if err != nil { - glog.Fatalf("cannot load needle map from %s: %s", indexFile, err) + glog.Fatalf("cannot load needle map from %s: %s", indexFile.Name(), err) } var version storage.Version diff --git a/go/weed/server.go b/go/weed/server.go index 61e42fb36..dde896c09 100644 --- a/go/weed/server.go +++ b/go/weed/server.go @@ -86,7 +86,7 @@ func runServer(cmd *Command, args []string) bool { if max, e := strconv.Atoi(maxString); e == nil { maxCounts = append(maxCounts, max) } else { - glog.Fatalf("The max specified in -max not a valid number %s", max) + glog.Fatalf("The max specified in -max not a valid number %s", maxString) } } if len(folders) != len(maxCounts) { diff --git a/go/weed/shell.go b/go/weed/shell.go index 885a0fa71..6a3331284 100644 --- a/go/weed/shell.go +++ b/go/weed/shell.go @@ -57,5 +57,4 @@ func runShell(command *Command, args []string) bool { cmd = readLine() execCmd(cmd) } - return true } diff --git a/go/weed/volume.go b/go/weed/volume.go index 3c6cf05a5..a43a396b2 100644 --- a/go/weed/volume.go +++ b/go/weed/volume.go @@ -53,7 +53,7 @@ func runVolume(cmd *Command, args []string) bool { if max, e := strconv.Atoi(maxString); e == nil { maxCounts = append(maxCounts, max) } else { - glog.Fatalf("The max specified in -max not a valid number %s", max) + glog.Fatalf("The max specified in -max not a valid number %s", maxString) } } if len(folders) != len(maxCounts) { |
