From a1d3548681fa81836c16de67af06989b8ed779a2 Mon Sep 17 00:00:00 2001 From: Med Ismail Bennani Date: Mon, 28 Apr 2025 10:26:40 -0700 Subject: [PATCH] [lldb/Format] Make progress count show thousands separators (NFC) (#137446) This patch changes the progress count formatting show thousands separator making it easier to read big numbers. Signed-off-by: Med Ismail Bennani (cherry picked from commit 4e4c6d7e273a91d230389b98c280c9dbde0f6c32) --- lldb/source/Core/FormatEntity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Core/FormatEntity.cpp b/lldb/source/Core/FormatEntity.cpp index f1470657b01ed..5055173b9b8a2 100644 --- a/lldb/source/Core/FormatEntity.cpp +++ b/lldb/source/Core/FormatEntity.cpp @@ -1968,7 +1968,7 @@ bool FormatEntity::Format(const Entry &entry, Stream &s, if (Target *target = Target::GetTargetFromContexts(exe_ctx, sc)) { if (auto progress = target->GetDebugger().GetCurrentProgressReport()) { if (progress->total != UINT64_MAX) { - s.Format("[{0}/{1}]", progress->completed, progress->total); + s.Format("[{0:N}/{1:N}]", progress->completed, progress->total); return true; } }