summaryrefslogtreecommitdiff
path: root/lib/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/thread.c')
-rw-r--r--lib/thread.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/thread.c b/lib/thread.c
index 9489e3e923..d3fb2cdf36 100644
--- a/lib/thread.c
+++ b/lib/thread.c
@@ -281,7 +281,7 @@ DEFUN (show_thread_cpu,
SHOW_STR
"Thread information\n"
"Thread CPU usage\n"
- "Display filter (rwtexb)\n")
+ "Display filter (rwtex)\n")
{
uint8_t filter = (uint8_t)-1U;
int idx = 0;
@@ -312,7 +312,8 @@ static void show_thread_poll_helper(struct vty *vty, struct thread_master *m)
vty_out(vty, "\nShowing poll FD's for %s\n", name);
vty_out(vty, "----------------------%s\n", underline);
- vty_out(vty, "Count: %u\n", (uint32_t)m->handler.pfdcount);
+ vty_out(vty, "Count: %u/%d\n", (uint32_t)m->handler.pfdcount,
+ m->fd_limit);
for (i = 0; i < m->handler.pfdcount; i++)
vty_out(vty, "\t%6d fd:%6d events:%2d revents:%2d\n", i,
m->handler.pfds[i].fd,
@@ -1034,7 +1035,7 @@ static void do_thread_cancel(struct thread_master *master)
if (cr->eventobj) {
struct thread *t;
- for_each_safe(thread_list, &master->event, t) {
+ frr_each_safe(thread_list, &master->event, t) {
if (t->arg != cr->eventobj)
continue;
thread_list_del(&master->event, t);
@@ -1043,7 +1044,7 @@ static void do_thread_cancel(struct thread_master *master)
thread_add_unuse(master, t);
}
- for_each_safe(thread_list, &master->ready, t) {
+ frr_each_safe(thread_list, &master->ready, t) {
if (t->arg != cr->eventobj)
continue;
thread_list_del(&master->ready, t);