summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Ruddy <pat@voltanet.io>2020-11-17 17:35:48 +0100
committerGitHub <noreply@github.com>2020-11-17 17:35:48 +0100
commitd50f52b9da9834cec2ad96c3b616bfe2bc502cae (patch)
tree420d0433b1c85f2d2df17be3ee5a5b4e827e34c8
parentMerge pull request #7541 from ton31337/fix/hardcoded_function_names (diff)
parentlib: Change zlog_debug to zlog_err for doc string issues (diff)
downloadfrr-d50f52b9da9834cec2ad96c3b616bfe2bc502cae.tar.xz
frr-d50f52b9da9834cec2ad96c3b616bfe2bc502cae.zip
Merge pull request #7511 from donaldsharp/vtysh_warn
Vtysh excessive/too little doc string re-instatement
-rw-r--r--lib/command_parse.y10
-rw-r--r--ospfd/ospf_vty.c4
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/command_parse.y b/lib/command_parse.y
index 5dc19d2c9..ba5225b70 100644
--- a/lib/command_parse.y
+++ b/lib/command_parse.y
@@ -492,11 +492,11 @@ terminate_graph (CMD_YYLTYPE *locp, struct parser_ctx *ctx,
graph_new_node (ctx->graph, (void *)element, NULL);
if (ctx->docstr && strlen (ctx->docstr) > 1) {
- zlog_debug ("Excessive docstring while parsing '%s'", ctx->el->string);
- zlog_debug ("----------");
+ zlog_err ("Excessive docstring while parsing '%s'", ctx->el->string);
+ zlog_err ("----------");
while (ctx->docstr && ctx->docstr[1] != '\0')
- zlog_debug ("%s", strsep(&ctx->docstr, "\n"));
- zlog_debug ("----------\n");
+ zlog_err ("%s", strsep(&ctx->docstr, "\n"));
+ zlog_err ("----------\n");
}
graph_add_edge (finalnode, end_token_node);
@@ -509,7 +509,7 @@ doc_next (struct parser_ctx *ctx)
const char *piece = ctx->docstr ? strsep (&ctx->docstr, "\n") : "";
if (*piece == 0x03)
{
- zlog_debug ("Ran out of docstring while parsing '%s'", ctx->el->string);
+ zlog_err ("Ran out of docstring while parsing '%s'", ctx->el->string);
piece = "";
}
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c
index 28ee4db3a..71dea8053 100644
--- a/ospfd/ospf_vty.c
+++ b/ospfd/ospf_vty.c
@@ -10155,8 +10155,8 @@ DEFUN (no_ospf_external_route_aggregation_no_adrvertise,
"no summary-address A.B.C.D/M no-advertise",
NO_STR
"External summary address\n"
- "Summary address prefix (a.b.c.d/m) \n"
- "Adverise summary route to the AS \n.")
+ "Summary address prefix (a.b.c.d/m)\n"
+ "Advertise summary route to the AS \n")
{
VTY_DECLVAR_INSTANCE_CONTEXT(ospf, ospf);
struct prefix_ipv4 p;