summaryrefslogtreecommitdiff
path: root/lib/thread.c
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2019-06-11 08:33:48 -0400
committerGitHub <noreply@github.com>2019-06-11 08:33:48 -0400
commit6aba4eeaecdb0307fda736d2bec968e5da0d5dfb (patch)
tree8d7dd5fec1420078022e8964156259e4f79a3ad2 /lib/thread.c
parent51e6f92ec6ee1b265873c56bc11e7ff915dff155 (diff)
parent051a0be4b2ec9cba419272df0f9c3be7f89f065b (diff)
Merge pull request #4482 from opensourcerouting/warnings-20190606
*: fix some dumb printf format warnings
Diffstat (limited to 'lib/thread.c')
-rw-r--r--lib/thread.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/thread.c b/lib/thread.c
index 3879e936a1..7489be5c2d 100644
--- a/lib/thread.c
+++ b/lib/thread.c
@@ -96,8 +96,10 @@ static void vty_out_cpu_thread_history(struct vty *vty,
struct cpu_thread_history *a)
{
vty_out(vty, "%5zu %10zu.%03zu %9zu %8zu %9zu %8zu %9zu",
- a->total_active, a->cpu.total / 1000, a->cpu.total % 1000,
- a->total_calls, a->cpu.total / a->total_calls, a->cpu.max,
+ (size_t)a->total_active,
+ a->cpu.total / 1000, a->cpu.total % 1000,
+ (size_t)a->total_calls,
+ a->cpu.total / a->total_calls, a->cpu.max,
a->real.total / a->total_calls, a->real.max);
vty_out(vty, " %c%c%c%c%c %s\n",
a->types & (1 << THREAD_READ) ? 'R' : ' ',