From 9897f0c6fc501934d65e8faad5c88ea1168439b7 Mon Sep 17 00:00:00 2001 From: huangjun Date: Fri, 16 Dec 2016 15:35:02 +0800 Subject: [PATCH] osd/PG: fix the unreadable log in choose_acting To avoid the log like: failed to fill position ^B Signed-off-by: huangjun --- src/osd/PG.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.47.3