Commit 71647659 authored by Jakob Unterwurzacher's avatar Jakob Unterwurzacher

fuse: show inHeader.Unique in request debug output

This allows you to track which Dispatch a Serialize belongs to,
to understand which requests are outstanding.

Change-Id: I1348dc2dd144840a3142b407616d700c8e988400
parent 98c05019
......@@ -85,8 +85,9 @@ func (r *request) InputDebug() string {
names += fmt.Sprintf(" %d bytes", len(r.arg))
}
return fmt.Sprintf("Dispatch: %s, NodeId: %v.%v%v",
operationName(r.inHeader.Opcode), r.inHeader.NodeId, val, names)
return fmt.Sprintf("Dispatch %d: %s, NodeId: %v.%v%v",
r.inHeader.Unique, operationName(r.inHeader.Opcode),
r.inHeader.NodeId, val, names)
}
func (r *request) OutputDebug() string {
......@@ -114,8 +115,9 @@ func (r *request) OutputDebug() string {
}
}
return fmt.Sprintf("Serialize: %s code: %v value: %v%v",
operationName(r.inHeader.Opcode), r.status, dataStr, flatStr)
return fmt.Sprintf("Serialize %d: %s code: %v value: %v%v",
r.inHeader.Unique, operationName(r.inHeader.Opcode), r.status,
dataStr, flatStr)
}
// setInput returns true if it takes ownership of the argument, false if not.
......
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