lib9p

Go 9P library.
Log | Files | Refs

commit 4b0bbc9a09ed5a609ce81a26717afb22b28f67d2
parent 4f637c315726a6bcf1582df0b9c56ad45eca8172
Author: Matsuda Kenji <info@mtkn.jp>
Date:   Tue, 19 Sep 2023 06:48:56 +0900

change FidPool.String() for debugging

Diffstat:
Mfid.go | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fid.go b/fid.go @@ -87,7 +87,8 @@ func (pool *FidPool) String() string { defer pool.lock.Unlock() s := "{" for fnum, fstruct := range pool.m { - s += fmt.Sprintf(" [%d]%v", fnum, fstruct) + st, _ := fstruct.File.Stat() + s += fmt.Sprintf(" [%d]%v", fnum, st.Name()) } s += "}" return s