[Asterisk-code-review] main/taskprocessor: Increase max name length of taskprocessors (...asterisk[master])
mattf
asteriskteam at digium.com
Fri Mar 22 14:48:06 CDT 2019
mattf has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/11165
Change subject: main/taskprocessor: Increase max name length of taskprocessors
......................................................................
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
---
M include/asterisk/taskprocessor.h
M main/taskprocessor.c
2 files changed, 3 insertions(+), 3 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/65/11165/1
diff --git a/include/asterisk/taskprocessor.h b/include/asterisk/taskprocessor.h
index 5278595..2f49e47 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 f4ce6bb..df60236 100644
--- a/main/taskprocessor.c
+++ b/main/taskprocessor.c
@@ -509,8 +509,8 @@
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:
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/11165
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I32f32d6926f25c8ef5a91303fd2988d2c2858877
Gerrit-Change-Number: 11165
Gerrit-PatchSet: 1
Gerrit-Owner: mattf <creslin at digium.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20190322/c04f2d27/attachment.html>
More information about the asterisk-code-review
mailing list