From 5c1f9aaec1d8b807b901c0e7551391ee49e4b09b Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Wed, 11 Jun 2014 22:53:43 +0200 Subject: [PATCH] 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 --- src/mon/OSDMonitor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index ff0684961ba2d..46e47cb223d1f 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(); -- 2.39.5