fix arm64 build issue

Signed-off-by: wenlong12 <wenlong12@huawei.com>

Signed-off-by: wenlong12 <wenlong12@huawei.com>
This commit is contained in:
wenlong12 2022-05-18 18:09:55 +08:00
parent b6236c0605
commit baf65914ec
2 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ void SubCommandDumpTest::TestDumpCommand(const std::string &option, bool expect)
std::string stringOut = stdoutRecord.Stop();
printf("command : %s(run %" PRId64 " ms) return %s(expect %s)\n", cmdString.c_str(),
costMs.count(), ret ? "true" : "false", expect ? "true" : "false");
(uint64_t)costMs.count(), ret ? "true" : "false", expect ? "true" : "false");
EXPECT_EQ(expect, ret);
if (expect) {
EXPECT_EQ(SubStringCount(stringOut, "HILOG/E"), 0u);

View File

@ -88,7 +88,7 @@ void SubCommandRecordTest::TestRecordCommand(const std::string &option, bool exp
chrono::steady_clock::now() - startTime);
std::string stringOut = stdoutRecord.Stop();
printf("run %" PRId64 " ms return %s(expect %s)\n", costMs.count(), ret ? "true" : "false",
printf("run %" PRId64 " ms return %s(expect %s)\n", (uint64_t)costMs.count(), ret ? "true" : "false",
expect ? "true" : "false");
EXPECT_EQ(expect, ret);
}