From: Loic Dachary Date: Wed, 11 Jun 2014 20:53:43 +0000 (+0200) Subject: osd: improve osd pool create error message readability X-Git-Tag: v0.83~91^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5c1f9aaec1d8b807b901c0e7551391ee49e4b09b;p=ceph.git osd: improve osd pool create error message readability Add std::endl to separate independent error messages related to erasure code. Signed-off-by: Loic Dachary --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index ff0684961ba..46e47cb223d 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -2946,7 +2946,7 @@ int OSDMonitor::crush_ruleset_create_erasure(const string &name, ErasureCodeInterfaceRef erasure_code; int err = get_erasure_code(profile, &erasure_code, ss); if (err) { - ss << "failed to load plugin using profile " << profile; + ss << "failed to load plugin using profile " << profile << std::endl; return err; } @@ -2974,7 +2974,7 @@ int OSDMonitor::get_erasure_code(const string &erasure_code_profile, if (plugin == profile.end()) { ss << "cannot determine the erasure code plugin" << " because there is no 'plugin' entry in the erasure_code_profile " - << profile; + << profile << std::endl; return -EINVAL; } ErasureCodePluginRegistry &instance = ErasureCodePluginRegistry::instance();