Commit 559b73ca authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Improve debug output.

parent a8e1344a
......@@ -267,7 +267,11 @@ func dispatch(state *MountState, h *InHeader, arg *bytes.Buffer) (outBytes [][]b
}
if state.Debug {
log.Printf("Dispatch: %v, NodeId: %v, n: %v\n", operationName(h.Opcode), h.NodeId, filename)
nm := ""
if filename != "" {
nm = "n: '" + filename + "'"
}
log.Printf("Dispatch: %v, NodeId: %v %s\n", operationName(h.Opcode), h.NodeId, nm)
}
// Follow ordering of fuse_lowlevel.h.
......
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