mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Do not debug log read/write buffers in lisafs.
These logs are not helpful and just make logs very noisy. PiperOrigin-RevId: 463136631
This commit is contained in:
@@ -857,7 +857,7 @@ type PReadResp struct {
|
||||
|
||||
// String implements fmt.Stringer.String.
|
||||
func (r *PReadResp) String() string {
|
||||
return fmt.Sprintf("PReadResp{NumBytes: %d, Buf: %v}", r.NumBytes, r.Buf)
|
||||
return fmt.Sprintf("PReadResp{NumBytes: %d, Buf: [...%d bytes...]}", r.NumBytes, len(r.Buf))
|
||||
}
|
||||
|
||||
// SizeBytes implements marshal.Marshallable.SizeBytes.
|
||||
@@ -894,7 +894,7 @@ type PWriteReq struct {
|
||||
|
||||
// String implements fmt.Stringer.String.
|
||||
func (w *PWriteReq) String() string {
|
||||
return fmt.Sprintf("PWriteReq{Offset: %d, FD: %d, NumBytes: %d, Buf: %v}", w.Offset, w.FD, w.NumBytes, w.Buf)
|
||||
return fmt.Sprintf("PWriteReq{Offset: %d, FD: %d, NumBytes: %d, Buf: [...%d bytes...]}", w.Offset, w.FD, w.NumBytes, len(w.Buf))
|
||||
}
|
||||
|
||||
// SizeBytes implements marshal.Marshallable.SizeBytes.
|
||||
|
||||
Reference in New Issue
Block a user