Commit 8988ee1f authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

UnionFs: use Printf rather than Println.

parent 2fc99324
...@@ -68,7 +68,7 @@ func (me *AutoUnionFs) Mount(connector *fuse.FileSystemConnector) fuse.Status { ...@@ -68,7 +68,7 @@ func (me *AutoUnionFs) Mount(connector *fuse.FileSystemConnector) fuse.Status {
func (me *AutoUnionFs) addAutomaticFs(roots []string) { func (me *AutoUnionFs) addAutomaticFs(roots []string) {
relative := strings.TrimLeft(strings.Replace(roots[0], me.root, "", -1), "/") relative := strings.TrimLeft(strings.Replace(roots[0], me.root, "", -1), "/")
name := strings.Replace(relative, "/", "-", -1) name := strings.Replace(relative, "/", "-", -1)
if me.getUnionFs(name) == nil { if me.getUnionFs(name) == nil {
me.addFs(name, roots) me.addFs(name, roots)
} }
...@@ -113,7 +113,7 @@ func (me *AutoUnionFs) rmFs(name string) (code fuse.Status) { ...@@ -113,7 +113,7 @@ func (me *AutoUnionFs) rmFs(name string) (code fuse.Status) {
if code.Ok() { if code.Ok() {
me.knownFileSystems[name] = nil, false me.knownFileSystems[name] = nil, false
} else { } else {
log.Println("Unmount failed for %s. Code %v", name, code) log.Printf("Unmount failed for %s. Code %v", name, code)
} }
return code return code
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment