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 <krzysztof.karas@intel.com>
Change-Id: I2c059c344b91f89011fa58f0289dc07bc8b97818
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7999
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
Krzysztof Karas 2021-05-21 15:42:25 +02:00 committed by Tomasz Zawadzki
parent d8ccfa3484
commit f5f5ca1949

View File

@ -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)
{