Remove ambgiuity in format specifier

Bug: 302163991

Test: m trusty-coverage-controller

Change-Id: I26318eeb4a6770bd01d3c677ca3cf5c76ce33fa0
This commit is contained in:
Snehal 2023-09-27 12:08:45 +00:00 committed by Snehal Koukuntla
parent ac758f2ccc
commit 6a12d23eab

View file

@ -54,7 +54,7 @@ void Controller::run(std::string output_dir) {
if (complete_cnt != counters[index] && start_cnt == complete_cnt) {
WRITE_ONCE(control->cntrl_flags, FLAG_NONE);
std::string filename;
filename = android::base::StringPrintf("/%s.%lu.profraw",
filename = android::base::StringPrintf("/%s.%" PRIu64 ".profraw",
uuid_list_[index].c_str(),
counters[index]);
filename.insert(0, output_dir);