Skip to content

Commit 178d312

Browse files
committed
crimson/common/tri_mutex: operator<< to print address
Signed-off-by: Matan Breizman <[email protected]>
1 parent dfc909d commit 178d312

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/crimson/common/tri_mutex.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ class tri_mutex : private read_lock,
134134
inline std::ostream& operator<<(std::ostream& os, const tri_mutex& tm)
135135
{
136136
os << fmt::format("tri_mutex {} writers {} readers {}"
137-
" exclusively_used {} waiters: {}",
137+
" exclusively_used {} waiters: {} address {}",
138138
tm.get_name(), tm.get_writers(), tm.get_readers(),
139-
tm.exclusively_used, tm.waiters.size());
139+
tm.exclusively_used, tm.waiters.size(), fmt::ptr(&tm));
140140
return os;
141141
}
142142

0 commit comments

Comments
 (0)