From 988113c1cd282bd95cc75b25d9dbf52590795427 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Fri, 16 Sep 2022 20:08:54 -0700 Subject: [PATCH] ceph_dedup_tool: fix log lines to use std::endl, update object skip message Signed-off-by: Samuel Just --- src/tools/ceph_dedup_tool.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tools/ceph_dedup_tool.cc b/src/tools/ceph_dedup_tool.cc index 39b4eb2fbd5..f89af555ce5 100644 --- a/src/tools/ceph_dedup_tool.cc +++ b/src/tools/ceph_dedup_tool.cc @@ -739,7 +739,7 @@ void SampleDedupWorkerThread::try_dedup_and_accumulate_result(ObjectItem &object bufferlist data = read_object(object); if (data.length() == 0) { cerr << __func__ << " skip object " << object.oid - << " dedup (read failed)\n"; + << " read returned size 0" << std::endl; return; } auto chunks = do_cdc(object, data); @@ -752,7 +752,8 @@ void SampleDedupWorkerThread::try_dedup_and_accumulate_result(ObjectItem &object } if (chunk_total_amount != data.length()) { cerr << __func__ << " sum of chunked length(" << chunk_total_amount - << ") is different from object data length(" << data.length() << ")\n"; + << ") is different from object data length(" << data.length() << ")" + << std::endl; return; } -- 2.39.5