mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
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:
parent
5bc4309b61
commit
236a5c8ddb
|
@ -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]);
|
||||||
|
|
Loading…
Reference in a new issue