From: huangjun Date: Fri, 16 Dec 2016 07:35:02 +0000 (+0800) Subject: osd/PG: fix the unreadable log in choose_acting X-Git-Tag: v11.1.1~40^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F12516%2Fhead;p=ceph.git osd/PG: fix the unreadable log in choose_acting To avoid the log like: failed to fill position ^B Signed-off-by: huangjun --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index b12e099614c1..312d12b685fd 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -1136,7 +1136,7 @@ void PG::calc_ec_acting( } } if (want[i] == CRUSH_ITEM_NONE) - ss << " failed to fill position " << i << std::endl; + ss << " failed to fill position " << (int)i << std::endl; } }