[compiler-rt] [scudo] Use a fixed format for the milliseconds in latest release. (PR #185097)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 6 12:18:32 PST 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-compiler-rt-sanitizer
Author: Christopher Ferris (cferris1000)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/185097.diff
1 Files Affected:
- (modified) compiler-rt/lib/scudo/standalone/primary64.h (+1-1)
``````````diff
diff --git a/compiler-rt/lib/scudo/standalone/primary64.h b/compiler-rt/lib/scudo/standalone/primary64.h
index e7386352967a2..a185d497e4963 100644
--- a/compiler-rt/lib/scudo/standalone/primary64.h
+++ b/compiler-rt/lib/scudo/standalone/primary64.h
@@ -1167,7 +1167,7 @@ void SizeClassAllocator64<Config>::getStats(ScopedString *Str, uptr ClassId,
const u64 LastReleaseSecAgo = DiffSinceLastReleaseNs / 1000000000;
const u64 LastReleaseMsAgo =
(DiffSinceLastReleaseNs % 1000000000) / 1000000;
- Str->append(" Latest release: %6" PRIu64 ":%" PRIu64 " seconds ago",
+ Str->append(" Latest release: %6" PRIu64 ":%03" PRIu64 " seconds ago",
LastReleaseSecAgo, LastReleaseMsAgo);
}
const s64 ResidentPages = Region->MemMapInfo.MemMap.getResidentPages();
``````````
</details>
https://github.com/llvm/llvm-project/pull/185097
More information about the llvm-commits
mailing list