From 9b7842b05cf01c9c0baca48474a70836ed8dc061 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 25 Apr 2021 04:38:52 +0800 Subject: [PATCH] Replace two append_string with one append_format in display_pnt Signed-off-by: Xiang Xiao Change-Id: I646176d345eebc769be20138c31d70fd24a8d0da --- chunk.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chunk.c b/chunk.c index 9f3d52f8..9657a09f 100644 --- a/chunk.c +++ b/chunk.c @@ -895,9 +895,8 @@ static char *display_pnt(const void *user_pnt, const skip_alloc_t *alloc_p, { char thread_id[256]; - buf_p = append_string(buf_p, bounds_p, "|t"); THREAD_ID_TO_STRING(thread_id, sizeof(thread_id), alloc_p->sa_thread_id); - buf_p = append_string(buf_p, bounds_p, thread_id); + buf_p = append_format(buf_p, bounds_p, "|t%s", thread_id); } #endif append_null(buf_p, bounds_p);