[compiler-rt] [scudo] Use a fixed format for the milliseconds in latest release. (PR #185097)
Christopher Ferris via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 6 12:17:56 PST 2026
https://github.com/cferris1000 created https://github.com/llvm/llvm-project/pull/185097
None
>From f353b8f962135023ac946e1cd7ea0b3cc066c715 Mon Sep 17 00:00:00 2001
From: Christopher Ferris <cferris at google.com>
Date: Fri, 6 Mar 2026 12:12:04 -0800
Subject: [PATCH] [scudo] Use a fixed format for the milliseconds in latest
release.
---
compiler-rt/lib/scudo/standalone/primary64.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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();
More information about the llvm-commits
mailing list