From: Xiaoxi Chen Date: Wed, 15 Apr 2015 08:22:28 +0000 (+0800) Subject: Use .str() to output a stringstream. X-Git-Tag: v9.1.0~242^2~65 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1a97fd6cb7cdc31288b34ba333b505dddce6fa76;p=ceph.git Use .str() to output a stringstream. a nit. Signed-off-by: Xiaoxi Chen --- diff --git a/src/os/newstore/NewStore.cc b/src/os/newstore/NewStore.cc index 6fee92d7d628..ba8c72b1525b 100644 --- a/src/os/newstore/NewStore.cc +++ b/src/os/newstore/NewStore.cc @@ -807,7 +807,7 @@ int NewStore::_open_db() db->init(); stringstream err; if (db->create_and_open(err)) { - derr << __func__ << " erroring opening db: " << err << dendl; + derr << __func__ << " erroring opening db: " << err.str() << dendl; delete db; db = NULL; return -EIO;