From 236a5c8ddba7859168202711680e32f2acd11675 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Tue, 11 Feb 2025 11:58:15 +0100 Subject: [PATCH] lib: `thread` -> `event` in formatting Make it consistent and call it `event` when formatting something to display. Much less confusing for some user seeing it too, since threads aren't involved. Signed-off-by: David Lamparter --- lib/event.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/event.c b/lib/event.c index ee9190c5d4..8c09debf91 100644 --- a/lib/event.c +++ b/lib/event.c @@ -2180,9 +2180,9 @@ static ssize_t printfrr_thread_dbg(struct fbuf *buf, struct printfrr_eargs *ea, char info[16] = ""; if (!thread) - return bputs(buf, "{(thread *)NULL}"); + return bputs(buf, "{(event *)NULL}"); - rv += bprintfrr(buf, "{(thread *)%p arg=%p", thread, thread->arg); + rv += bprintfrr(buf, "{(event *)%p arg=%p", thread, thread->arg); if (thread->type < array_size(types) && types[thread->type]) rv += bprintfrr(buf, " %-6s", types[thread->type]); -- 2.39.5