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 <equinox@opensourcerouting.org>
This commit is contained in:
David Lamparter 2025-02-11 11:58:15 +01:00
parent 5bc4309b61
commit 236a5c8ddb

View file

@ -2180,9 +2180,9 @@ static ssize_t printfrr_thread_dbg(struct fbuf *buf, struct printfrr_eargs *ea,
char info[16] = ""; char info[16] = "";
if (!thread) 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]) if (thread->type < array_size(types) && types[thread->type])
rv += bprintfrr(buf, " %-6s", types[thread->type]); rv += bprintfrr(buf, " %-6s", types[thread->type]);