From f5f5ca1949547de9d2fe5613932826133c55990f Mon Sep 17 00:00:00 2001 From: Krzysztof Karas Date: Fri, 21 May 2021 15:42:25 +0200 Subject: [PATCH] spdk_top: move print_bottom_error_message() function upwards This is to allow display_thread to use the function in the next patch. Signed-off-by: Krzysztof Karas Change-Id: I2c059c344b91f89011fa58f0289dc07bc8b97818 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7999 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Tomasz Zawadzki --- app/spdk_top/spdk_top.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/spdk_top/spdk_top.c b/app/spdk_top/spdk_top.c index e69b6ef5f..aa69cac06 100644 --- a/app/spdk_top/spdk_top.c +++ b/app/spdk_top/spdk_top.c @@ -2175,6 +2175,12 @@ get_position_for_window(uint64_t window_size, uint64_t max_size) return (max_size - window_size) / 2; } +static void +print_bottom_error_message(char *msg) +{ + mvprintw(g_max_row - 1, g_max_col - strlen(msg) - 2, msg); +} + static void display_thread(struct rpc_thread_info *thread_info) { @@ -2543,12 +2549,6 @@ show_poller(uint8_t current_page) delwin(poller_win); } -static void -print_bottom_error_message(char *msg) -{ - mvprintw(g_max_row - 1, g_max_col - strlen(msg) - 2, msg); -} - static void * data_thread_routine(void *arg) {