From fa0069c647d738463b35aac61b2427f66b8e083c Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 3 Apr 2019 16:39:50 -0400 Subject: lib, pbrd, zebra: Fix size_t type printf warnings on obscure platforms Use the correct printf formater for those obscure platforms that we build against. Signed-off-by: Donald Sharp --- lib/thread.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/thread.c') diff --git a/lib/thread.c b/lib/thread.c index 19ab409439..608c236f4c 100644 --- a/lib/thread.c +++ b/lib/thread.c @@ -93,10 +93,9 @@ static void cpu_record_hash_free(void *a) static void vty_out_cpu_thread_history(struct vty *vty, struct cpu_thread_history *a) { - vty_out(vty, "%5"PRIdFAST32" %10lu.%03lu %9"PRIuFAST32 - " %8lu %9lu %8lu %9lu", a->total_active, - a->cpu.total / 1000, a->cpu.total % 1000, a->total_calls, - a->cpu.total / a->total_calls, a->cpu.max, + vty_out(vty, "%5zu %10zu.%03lu %9zu %8zu %9zu %8lu %9lu", + a->total_active, a->cpu.total / 1000, a->cpu.total % 1000, + 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' : ' ', -- cgit v1.2.3