summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2023-05-23 08:21:51 -0400
committerGitHub <noreply@github.com>2023-05-23 08:21:51 -0400
commit7b7da41def4524670ff3ef5041b1eb4084d133bb (patch)
tree99c7ce75f7e3fa83314c4b4270567b0192aaef28 /lib
parent5db30e795871b4665cf05c5a407df966cd39c3f5 (diff)
parent425739089250760bc474cfa918692c1edbeb500a (diff)
Merge pull request #13556 from donaldsharp/token_to_desc
memory desciprtion shortening
Diffstat (limited to 'lib')
-rw-r--r--lib/grammar_sandbox.c10
-rw-r--r--lib/mgmt_be_client.c5
2 files changed, 7 insertions, 8 deletions
diff --git a/lib/grammar_sandbox.c b/lib/grammar_sandbox.c
index fc7ebebbe5..24833e08ec 100644
--- a/lib/grammar_sandbox.c
+++ b/lib/grammar_sandbox.c
@@ -19,7 +19,7 @@
#define GRAMMAR_STR "CLI grammar sandbox\n"
-DEFINE_MTYPE_STATIC(LIB, CMD_TOKENS, "Command desc");
+DEFINE_MTYPE_STATIC(LIB, CMD_DESCRIPTIONS, "Command desc");
/** headers **/
void grammar_sandbox_init(void);
@@ -53,7 +53,7 @@ DEFUN (grammar_test,
// create cmd_element for parser
struct cmd_element *cmd =
- XCALLOC(MTYPE_CMD_TOKENS, sizeof(struct cmd_element));
+ XCALLOC(MTYPE_CMD_DESCRIPTIONS, sizeof(struct cmd_element));
cmd->string = command;
cmd->doc =
"0\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n11\n12\n13\n14\n15\n16\n17\n18\n19\n";
@@ -207,11 +207,11 @@ DEFUN (grammar_test_doc,
// create cmd_element with docstring
struct cmd_element *cmd =
- XCALLOC(MTYPE_CMD_TOKENS, sizeof(struct cmd_element));
+ XCALLOC(MTYPE_CMD_DESCRIPTIONS, sizeof(struct cmd_element));
cmd->string = XSTRDUP(
- MTYPE_CMD_TOKENS,
+ MTYPE_CMD_DESCRIPTIONS,
"test docstring <example|selector follow> (1-255) end VARIABLE [OPTION|set lol] . VARARG");
- cmd->doc = XSTRDUP(MTYPE_CMD_TOKENS,
+ cmd->doc = XSTRDUP(MTYPE_CMD_DESCRIPTIONS,
"Test stuff\n"
"docstring thing\n"
"first example\n"
diff --git a/lib/mgmt_be_client.c b/lib/mgmt_be_client.c
index 9427f7cf3d..f74cf6ba09 100644
--- a/lib/mgmt_be_client.c
+++ b/lib/mgmt_be_client.c
@@ -26,9 +26,8 @@
#define MGMTD_DBG_BE_CLIENT_CHECK() \
DEBUG_MODE_CHECK(&mgmt_dbg_be_client, DEBUG_MODE_ALL)
-DEFINE_MTYPE_STATIC(LIB, MGMTD_BE_BATCH,
- "MGMTD backend transaction batch data");
-DEFINE_MTYPE_STATIC(LIB, MGMTD_BE_TXN, "MGMTD backend transaction data");
+DEFINE_MTYPE_STATIC(LIB, MGMTD_BE_BATCH, "backend transaction batch data");
+DEFINE_MTYPE_STATIC(LIB, MGMTD_BE_TXN, "backend transaction data");
enum mgmt_be_txn_event {
MGMTD_BE_TXN_PROC_SETCFG = 1,