forked from Mirror/frr
lib: warn about too much docstring
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
c6200b5467
commit
ebb0813089
|
@ -443,6 +443,14 @@ terminate_graph (CMD_YYLTYPE *locp, struct parser_ctx *ctx,
|
||||||
struct graph_node *end_element_node =
|
struct graph_node *end_element_node =
|
||||||
graph_new_node (ctx->graph, element, NULL);
|
graph_new_node (ctx->graph, element, NULL);
|
||||||
|
|
||||||
|
if (ctx->docstr && strlen (ctx->docstr) > 1) {
|
||||||
|
zlog_debug ("Excessive docstring while parsing '%s'", ctx->el->string);
|
||||||
|
zlog_debug ("----------");
|
||||||
|
while (ctx->docstr && ctx->docstr[1] != '\0')
|
||||||
|
zlog_debug ("%s", strsep(&ctx->docstr, "\n"));
|
||||||
|
zlog_debug ("----------\n");
|
||||||
|
}
|
||||||
|
|
||||||
graph_add_edge (finalnode, end_token_node);
|
graph_add_edge (finalnode, end_token_node);
|
||||||
graph_add_edge (end_token_node, end_element_node);
|
graph_add_edge (end_token_node, end_element_node);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue