summaryrefslogtreecommitdiff
path: root/lib/workqueue.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/workqueue.c')
-rw-r--r--lib/workqueue.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/workqueue.c b/lib/workqueue.c
index 3749344196..60119f1f41 100644
--- a/lib/workqueue.c
+++ b/lib/workqueue.c
@@ -191,11 +191,11 @@ DEFUN (show_work_queues,
struct listnode *node;
struct work_queue *wq;
- vty_outln (vty,
- "%c %8s %5s %8s %8s %21s",
+ vty_out (vty,
+ "%c %8s %5s %8s %8s %21s\n",
' ', "List","(ms) ","Q. Runs","Yields","Cycle Counts ");
- vty_outln (vty,
- "%c %8s %5s %8s %8s %7s %6s %8s %6s %s",
+ vty_out (vty,
+ "%c %8s %5s %8s %8s %7s %6s %8s %6s %s\n",
'P',
"Items",
"Hold",
@@ -205,7 +205,7 @@ DEFUN (show_work_queues,
for (ALL_LIST_ELEMENTS_RO (work_queues, node, wq))
{
- vty_outln (vty,"%c %8d %5d %8ld %8ld %7d %6d %8ld %6u %s",
+ vty_out (vty,"%c %8d %5d %8ld %8ld %7d %6d %8ld %6u %s\n",
(CHECK_FLAG (wq->flags, WQ_UNPLUGGED) ? ' ' : 'P'),
listcount (wq->items),
wq->spec.hold,
@@ -331,14 +331,14 @@ work_queue_run (struct thread *thread)
{
item->ran--;
work_queue_item_requeue (wq, node);
- /* If a single node is being used with a meta-queue (e.g., zebra),
- * update the next node as we don't want to exit the thread and
- * reschedule it after every node. By definition, WQ_REQUEUE is
- * meant to continue the processing; the yield logic will kick in
- * to terminate the thread when time has exceeded.
- */
- if (nnode == NULL)
- nnode = node;
+ /* If a single node is being used with a meta-queue (e.g., zebra),
+ * update the next node as we don't want to exit the thread and
+ * reschedule it after every node. By definition, WQ_REQUEUE is
+ * meant to continue the processing; the yield logic will kick in
+ * to terminate the thread when time has exceeded.
+ */
+ if (nnode == NULL)
+ nnode = node;
break;
}
case WQ_RETRY_NOW:
@@ -348,7 +348,7 @@ work_queue_run (struct thread *thread)
if (wq->spec.errorfunc)
wq->spec.errorfunc (wq, item);
}
- /* fall through here is deliberate */
+ /* fallthru */
case WQ_SUCCESS:
default:
{