aboutsummaryrefslogtreecommitdiff
path: root/internal/fusefrontend_reverse/virtualfile.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2017-04-01 15:49:53 +0200
committerJakob Unterwurzacher2017-04-01 15:49:53 +0200
commitacb73ca4363a8fbf3e0be1907a9b26689d879d73 (patch)
tree40ff06220daf3fc0fffac966bf800aa49621b9cb /internal/fusefrontend_reverse/virtualfile.go
parentc87439b4e691f55f79241bc7d9c2bf64a67abe14 (diff)
fusefrontend_reverse: convert fmt.Printf calls to tlog
The fmt.Printfs output would end up in the paniclog.
Diffstat (limited to 'internal/fusefrontend_reverse/virtualfile.go')
-rw-r--r--internal/fusefrontend_reverse/virtualfile.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/fusefrontend_reverse/virtualfile.go b/internal/fusefrontend_reverse/virtualfile.go
index d5c4491..2bd9e88 100644
--- a/internal/fusefrontend_reverse/virtualfile.go
+++ b/internal/fusefrontend_reverse/virtualfile.go
@@ -1,11 +1,12 @@
package fusefrontend_reverse
import (
- "fmt"
"syscall"
"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/fuse/nodefs"
+
+ "github.com/rfjakob/gocryptfs/internal/tlog"
)
func (rfs *ReverseFS) newDirIVFile(cRelPath string) (nodefs.File, fuse.Status) {
@@ -58,7 +59,7 @@ func (f *virtualFile) GetAttr(a *fuse.Attr) fuse.Status {
var st syscall.Stat_t
err := syscall.Lstat(f.parentFile, &st)
if err != nil {
- fmt.Printf("Lstat %q: %v\n", f.parentFile, err)
+ tlog.Debug.Printf("GetAttr: Lstat %q: %v\n", f.parentFile, err)
return fuse.ToStatus(err)
}
st.Ino = f.ino