diff options
author | Lou Berger <lberger@labn.net> | 2019-04-04 16:08:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-04 16:08:34 +0200 |
commit | e9890df15d49052330f1c2501ae949cbfddb30a1 (patch) | |
tree | d9cba9429aa15df60c27673a54385f1835994a4f /lib/thread.c | |
parent | Merge pull request #4075 from qlyoung/reduce-exported-vars (diff) | |
parent | lib, pbrd, zebra: Fix size_t type printf warnings on obscure platforms (diff) | |
download | frr-e9890df15d49052330f1c2501ae949cbfddb30a1.tar.xz frr-e9890df15d49052330f1c2501ae949cbfddb30a1.zip |
Merge pull request #4073 from donaldsharp/undebug_me_or_not
some cleanup across multiple daemons
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 4bd61b78c..2760b83fb 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' : ' ', |