From 51cde60319c4d34e95d30704f9c3aeddc80e3c30 Mon Sep 17 00:00:00 2001 From: Huber-ming Date: Tue, 7 Dec 2021 13:59:47 +0800 Subject: [PATCH] radosgw-admin: fix some error logs Signed-off-by: Huber-ming --- src/rgw/rgw_admin.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index 454209cd81cdf..76814d23eb84b 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -4398,7 +4398,7 @@ int main(int argc, const char **argv) cout << "No default realm is set" << std::endl; return -ret; } else if (ret < 0) { - cerr << "Error reading default realm:" << cpp_strerror(-ret) << std::endl; + cerr << "Error reading default realm: " << cpp_strerror(-ret) << std::endl; return -ret; } cout << "default realm: " << default_id << std::endl; @@ -4623,7 +4623,7 @@ int main(int argc, const char **argv) RGWZoneGroup zonegroup(zonegroup_id,zonegroup_name); int ret = zonegroup.init(dpp(), g_ceph_context, static_cast(store)->svc()->sysobj, null_yield); if (ret < 0) { - cerr << "failed to initialize zonegroup " << zonegroup_name << " id " << zonegroup_id << " :" + cerr << "failed to initialize zonegroup " << zonegroup_name << " id " << zonegroup_id << ": " << cpp_strerror(-ret) << std::endl; return -ret; } @@ -5323,7 +5323,7 @@ int main(int argc, const char **argv) } if( !zone_name.empty() && !zone.get_name().empty() && zone.get_name() != zone_name) { - cerr << "Error: zone name" << zone_name << " is different than the zone name " << zone.get_name() << " in the provided json " << std::endl; + cerr << "Error: zone name " << zone_name << " is different than the zone name " << zone.get_name() << " in the provided json " << std::endl; return EINVAL; }