From 873eb0a226e5ea49af9c0156d1c7449014d3872d Mon Sep 17 00:00:00 2001 From: wbq_sky Date: Wed, 18 May 2022 22:35:55 +0800 Subject: [PATCH] fix the compile problem in the 64 bits env Signed-off-by: wbq_sky --- .../common/distributeddb/src/distributed_test_sysinfo.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/services/distributeddataservice/test/common/distributeddb/src/distributed_test_sysinfo.cpp b/services/distributeddataservice/test/common/distributeddb/src/distributed_test_sysinfo.cpp index e5be30527..3b7be386d 100644 --- a/services/distributeddataservice/test/common/distributeddb/src/distributed_test_sysinfo.cpp +++ b/services/distributeddataservice/test/common/distributeddb/src/distributed_test_sysinfo.cpp @@ -12,6 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +#include #include #include "distributed_test_sysinfo.h" #include "distributeddb_data_generator.h" @@ -78,8 +79,8 @@ void DistributedTestSysInfo::GetSysMemOccpy(SeqNo seqNo) if (result3 != 2 || result4 != 2 || result5 != 2) { // there are 2 incoming param. MST_LOG("get mem2 info failed."); } - MST_LOG(" [MemTotal] = %llu \n [MemFree] = %llu \n [Buffers] = %llu \n [Cached] = %llu \n [SwapCached] = %llu ", - memOccupy->memTotal_, memOccupy->memFree_, memOccupy->buffers_, + MST_LOG(" [MemTotal] = %" PRIu64 " \n [MemFree] = %" PRIu64 " \n [Buffers] = %" PRIu64 " \n [Cached] = %" PRIu64 \ + " \n [SwapCached] = %" PRIu64, memOccupy->memTotal_, memOccupy->memFree_, memOccupy->buffers_, memOccupy->cached_, memOccupy->swapCached_); fclose(fp); fp = nullptr; @@ -298,4 +299,4 @@ void DistributedTestSysInfo::SaveSecondToFirst() void DistributedTestSysInfo::SaveSecondToFirst() { } -#endif \ No newline at end of file +#endif -- Gitee