diff options
| author | David Lamparter <equinox@diac24.net> | 2020-03-27 13:14:37 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2020-03-29 10:45:46 +0200 |
| commit | 566bdaf68cb41de3884726efc15376a79b3325b5 (patch) | |
| tree | 4d9e4ca6639bcf5684416e5e50c993d38339a8fe /lib/thread.c | |
| parent | 07ef3e34ae0a414cefed99488abcbc167a9c0f3d (diff) | |
*: fix format string warnings
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/thread.c')
| -rw-r--r-- | lib/thread.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/thread.c b/lib/thread.c index 2217a60f0a..dbf668a699 100644 --- a/lib/thread.c +++ b/lib/thread.c @@ -114,11 +114,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", - (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); + (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); vty_out(vty, " %c%c%c%c%c %s\n", a->types & (1 << THREAD_READ) ? 'R' : ' ', a->types & (1 << THREAD_WRITE) ? 'W' : ' ', |
