diff options
author | Matt Benjamin <mbenjamin@redhat.com> | 2015-10-30 18:28:25 +0100 |
---|---|---|
committer | Matt Benjamin <mbenjamin@redhat.com> | 2016-02-12 18:05:28 +0100 |
commit | 5e0b6e4df04e4e7cbd7fd573bdd0cf38ac48610f (patch) | |
tree | 98e18fbd1b32dc42380e7200e444702b20a9066c /src/test/librgw_file_gp.cc | |
parent | librgw: try-implement rgw_readv/rgw_writev (diff) | |
download | ceph-5e0b6e4df04e4e7cbd7fd573bdd0cf38ac48610f.tar.xz ceph-5e0b6e4df04e4e7cbd7fd573bdd0cf38ac48610f.zip |
librgw: fix 2 dout problems
* 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>
Diffstat (limited to 'src/test/librgw_file_gp.cc')
-rw-r--r-- | src/test/librgw_file_gp.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/test/librgw_file_gp.cc b/src/test/librgw_file_gp.cc index 6de26aaa36e..eb981773438 100644 --- a/src/test/librgw_file_gp.cc +++ b/src/test/librgw_file_gp.cc @@ -215,7 +215,9 @@ TEST(LibRGW, GET_OBJECT) { 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; } } @@ -291,7 +293,11 @@ TEST(LibRGW, READV) 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) { |