]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/PG: fix the unreadable log in choose_acting 12516/head
authorhuangjun <hjwsm1989@gmail.com>
Fri, 16 Dec 2016 07:35:02 +0000 (15:35 +0800)
committerhuangjun <hjwsm1989@gmail.com>
Fri, 16 Dec 2016 07:35:02 +0000 (15:35 +0800)
          To avoid the log like: failed to fill position ^B
Signed-off-by: huangjun <hjwsm1989@gmail.com>
src/osd/PG.cc

index b12e099614c1c8b8178a37e6288162813e156240..312d12b685fdb448eac5176f84bed0d338358992 100644 (file)
@@ -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;
     }
   }