diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-04-03 16:39:50 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-04-03 16:39:50 -0400 |
| commit | fa0069c647d738463b35aac61b2427f66b8e083c (patch) | |
| tree | 573c20969fcc1edf46bff9a59ffa34cd951f6451 /lib/thread.c | |
| parent | fb09579ef78f9bc2588658b5ca5c3d17f098477e (diff) | |
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 <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/thread.c')
| -rw-r--r-- | lib/thread.c | 7 |
1 files changed, 3 insertions, 4 deletions
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' : ' ', |
