From 41a2662e164cf4cf7fa36491a8bbfefbd8d1da4b Mon Sep 17 00:00:00 2001 From: Matthew Fredrickson <creslin@digium.com> Date: Fri, 22 Mar 2019 19:46:34 +0000 Subject: [PATCH] main/taskprocessor: Increase max name length of taskprocessors Since the new names went in, the maximum taskprocessor name is too short. This patch increases the name field to a length to better handle the new names. Change-Id: I32f32d6926f25c8ef5a91303fd2988d2c2858877 --- include/asterisk/taskprocessor.h | 2 +- main/taskprocessor.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/asterisk/taskprocessor.h b/include/asterisk/taskprocessor.h index 5278595c48..2f49e47279 100644 --- a/include/asterisk/taskprocessor.h +++ b/include/asterisk/taskprocessor.h @@ -57,7 +57,7 @@ struct ast_taskprocessor; /*! \brief Suggested maximum taskprocessor name length (less null terminator). */ -#define AST_TASKPROCESSOR_MAX_NAME 45 +#define AST_TASKPROCESSOR_MAX_NAME 70 /*! Default taskprocessor high water level alert trigger */ #define AST_TASKPROCESSOR_HIGH_WATER_LEVEL 500 diff --git a/main/taskprocessor.c b/main/taskprocessor.c index f4ce6bb4ae..df60236ecd 100644 --- a/main/taskprocessor.c +++ b/main/taskprocessor.c @@ -509,8 +509,8 @@ static char *cli_tps_report(struct ast_cli_entry *e, int cmd, struct ast_cli_arg struct ao2_container *sorted_tps; struct ast_taskprocessor *tps; struct ao2_iterator iter; -#define FMT_HEADERS "%-45s %10s %10s %10s %10s %10s\n" -#define FMT_FIELDS "%-45s %10lu %10lu %10lu %10lu %10lu\n" +#define FMT_HEADERS "%-70s %10s %10s %10s %10s %10s\n" +#define FMT_FIELDS "%-70s %10lu %10lu %10lu %10lu %10lu\n" switch (cmd) { case CLI_INIT: -- GitLab