diff options
| author | Mark Stapp <mjs@voltanet.io> | 2020-11-03 17:07:08 -0500 |
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2020-11-04 16:56:17 -0500 |
| commit | 72327cf3e71886a280c57b208869e1ddce49b046 (patch) | |
| tree | 97b44b4e484e89d1e63bac718dce83aa67d4e33a /lib/thread.c | |
| parent | 7dcd8af02486b4447e838c0ae9ef6585736dda1e (diff) | |
* : clean up format specifiers for gcc-10
gcc 10 complains about some of our format specs, fix them. Use
atomic size_t in thread stats, to work around platform
differences.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
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 db53e267f8..e71fd74bd9 100644 --- a/lib/thread.c +++ b/lib/thread.c @@ -115,10 +115,9 @@ 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", - (size_t)a->total_active, a->cpu.total / 1000, - a->cpu.total % 1000, (size_t)a->total_calls, - (size_t)(a->cpu.total / a->total_calls), a->cpu.max, - (size_t)(a->real.total / a->total_calls), a->real.max); + 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' : ' ', a->types & (1 << THREAD_WRITE) ? 'W' : ' ', |
