From fcb4729e928d9ce1a233510af989b191caa1dfb6 Mon Sep 17 00:00:00 2001 From: wenlong12 Date: Mon, 27 Jun 2022 11:36:54 +0800 Subject: [PATCH] test Signed-off-by:wenlong12 Signed-off-by: wenlong12 --- src/perf_event_record.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/perf_event_record.cpp b/src/perf_event_record.cpp index c1daaba..06fa33c 100644 --- a/src/perf_event_record.cpp +++ b/src/perf_event_record.cpp @@ -332,7 +332,7 @@ void PerfRecordSample::DumpData(int indent) const // dump record according sampleType if (sampleType_ & (PERF_SAMPLE_ID | PERF_SAMPLE_IDENTIFIER)) { - PrintIndent(indent, "ID %" PRIu64 "\n", static_cast(data_.sample_id)); + PrintIndent(indent, "ID %lld\n", data_.sample_id); } if (sampleType_ & PERF_SAMPLE_IP) { PrintIndent(indent, "ip %llx\n", data_.ip); @@ -347,13 +347,13 @@ void PerfRecordSample::DumpData(int indent) const PrintIndent(indent, "addr %p\n", reinterpret_cast(data_.addr)); } if (sampleType_ & PERF_SAMPLE_STREAM_ID) { - PrintIndent(indent, "stream_id %" PRIu64 "\n", static_cast(data_.stream_id)); + PrintIndent(indent, "stream_id %lld\n", data_.stream_id); } if (sampleType_ & PERF_SAMPLE_CPU) { PrintIndent(indent, "cpu %u, res %u\n", data_.cpu, data_.res); } if (sampleType_ & PERF_SAMPLE_PERIOD) { - PrintIndent(indent, "period %" PRIu64 "\n", static_cast(data_.period)); + PrintIndent(indent, "period %lld\n", data_.period); } if (sampleType_ & PERF_SAMPLE_CALLCHAIN) { bool userContext = false; -- Gitee