[compiler-rt] [MemProf] Fix incorrect usage of InternalScopedString::appendF in Des… (PR #80574)

via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 3 18:01:20 PST 2024


https://github.com/Enna1 created https://github.com/llvm/llvm-project/pull/80574

…cribeThread

>From 346c87577071fb469bb212dfa8c6546da22706e1 Mon Sep 17 00:00:00 2001
From: "xumingjie.enna1" <xumingjie.enna1 at bytedance.com>
Date: Sun, 4 Feb 2024 09:59:49 +0800
Subject: [PATCH] [MemProf] Fix incorrect usage of
 InternalScopedString::appendF in DescribeThread

---
 compiler-rt/lib/memprof/memprof_descriptions.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler-rt/lib/memprof/memprof_descriptions.cpp b/compiler-rt/lib/memprof/memprof_descriptions.cpp
index 48b74b6bc87fb..4fbe2943e6539 100644
--- a/compiler-rt/lib/memprof/memprof_descriptions.cpp
+++ b/compiler-rt/lib/memprof/memprof_descriptions.cpp
@@ -51,7 +51,7 @@ void DescribeThread(MemprofThreadContext *context) {
   InternalScopedString str;
   str.AppendF("Thread %s", MemprofThreadIdAndName(context).c_str());
   if (context->parent_tid == kInvalidTid) {
-    str.AppendF(" created by unknown thread\n");
+    str.Append(" created by unknown thread\n");
     Printf("%s", str.data());
     return;
   }



More information about the llvm-commits mailing list