summaryrefslogtreecommitdiff
path: root/lib/vty.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2021-02-02 13:24:31 -0500
committerDonald Sharp <sharpd@nvidia.com>2021-03-26 13:27:45 -0400
commit9b8e01cae44cf6cb3a1a08c483ab0deceda21375 (patch)
treef00d4fd4c60933feb98442a423fea9b4266a8efc /lib/vty.c
parent039d547f6f1b7fe4b96cc22ac5a6ef8d18d5cf97 (diff)
lib: Incorporate Wall and Cpu warning into `show thread cpu`
Incorporate into the `show thread cpu` the number of times we have issued warnings about a particular thread being too slow. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/vty.c')
-rw-r--r--lib/vty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/vty.c b/lib/vty.c
index 05e495c458..bc4b340635 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -517,12 +517,12 @@ static int vty_command(struct vty *vty, char *buf)
/* Warn about CPU hog that must be fixed. */
flog_warn(
EC_LIB_SLOW_THREAD_CPU,
- "SLOW COMMAND: command took %lums (cpu time %lums): %s",
+ "CPU HOG: command took %lums (cpu time %lums): %s",
realtime / 1000, cputime / 1000, buf);
} else if (realtime > CONSUMED_TIME_CHECK) {
flog_warn(
EC_LIB_SLOW_THREAD_WALL,
- "SLOW COMMAND: command took %lums (cpu time %lums): %s",
+ "STARVATION: command took %lums (cpu time %lums): %s",
realtime / 1000, cputime / 1000, buf);
}
}