This way we can always see laddr in debug output.
Signed-off-by: Samuel Just <sjust@redhat.com>
}
}
+std::ostream &LogicalCachedExtent::print_detail(std::ostream &out) const
+{
+ out << ", laddr=" << laddr;
+ if (pin) {
+ out << ", pin=" << *pin;
+ } else {
+ out << ", pin=empty";
+ }
+ return print_detail_l(out);
+}
+
std::ostream &operator<<(std::ostream &out, const LBAPin &rhs)
{
return out << "LBAPin(" << rhs.get_laddr() << "~" << rhs.get_length()
bool is_logical() const final {
return true;
}
+
+ std::ostream &print_detail(std::ostream &out) const final;
protected:
virtual void apply_delta(const ceph::bufferlist &bl) = 0;
+ virtual std::ostream &print_detail_l(std::ostream &out) const {
+ return out;
+ }
private:
laddr_t laddr = L_ADDR_NULL;