* rgw_file.cc needed to include include/assert.h AFTER all rgw
includes, for some reason
* use *_dout syntax as target of bl.hexdump in lbrgw_file_gp.cc
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
#include "rgw_file.h"
+/* XXX
+ * ASSERT_H somehow not defined after all the above (which bring
+ * in common/debug.h [e.g., dout])
+ */
+#include "include/assert.h"
+
#define dout_subsys ceph_subsys_rgw
extern RGWLib librgw;
if (! rgw_fh->is_object())
return EINVAL;
+ dout(15) << "test dout" << dendl;
+
buffer::list bl;
RGWGetObjRequest req(cct, fs->get_user(), rgw_fh->bucket_name(),
rgw_fh->object_name(), uio->uio_offset, uio->uio_resid,
ASSERT_EQ(ret, 0);
buffer::list bl;
bl.push_back(buffer::create_static(nread, sbuf));
- bl.hexdump(std::cout);
+ dout(15) << "";
+ bl.hexdump(*_dout);
+ *_dout << dendl;
}
}
buffer::create_static(vio->vio_len,
static_cast<char*>(vio->vio_base)));
}
- bl.hexdump(std::cout);
+
+ dout(15) << "";
+ bl.hexdump(*_dout);
+ *_dout << dendl;
+
// release resources
ASSERT_NE(uio->uio_rele, nullptr);
if (uio->uio_rele) {