From 7298b8ccd59827de1f0777ed97532f5e29f01904 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 15 May 2017 20:46:06 -0400 Subject: [PATCH 1/2] eigrpd: Fix arm compile issue with some gcc's Signed-off-by: Donald Sharp --- eigrpd/eigrp_dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eigrpd/eigrp_dump.c b/eigrpd/eigrp_dump.c index 97ef37d8a9..010f201cd5 100644 --- a/eigrpd/eigrp_dump.c +++ b/eigrpd/eigrp_dump.c @@ -313,7 +313,7 @@ show_ip_eigrp_prefix_entry (struct vty *vty, struct eigrp_prefix_entry *tn) vty_out (vty, "%-3c",(tn->state > 0) ? 'A' : 'P'); vty_out (vty, "%s/%u, ",inet_ntoa (tn->destination_ipv4->prefix),tn->destination_ipv4->prefixlen); vty_out (vty, "%u successors, ",eigrp_topology_get_successor(tn)->count); - vty_out (vty, "FD is %u, serno: %lu %s",tn->fdistance, tn->serno, VTY_NEWLINE); + vty_out (vty, "FD is %u, serno: %" PRIu64 " %s",tn->fdistance, tn->serno, VTY_NEWLINE); } void From 291ca371e2974a55799174e2a5447928cab57802 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 15 May 2017 20:55:33 -0400 Subject: [PATCH 2/2] lib: Improve error message for the developer I keep getting people asking me about what to do when this error is generated when they are programming new cli. Maybe this is a bit better bread-crumb? Signed-off-by: Donald Sharp --- lib/command.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/command.c b/lib/command.c index cc597952e4..8ef9fae832 100644 --- a/lib/command.c +++ b/lib/command.c @@ -324,6 +324,7 @@ install_element (enum node_type ntype, struct cmd_element *cmd) { fprintf (stderr, "Command node %d doesn't exist, please check it\n", ntype); + fprintf (stderr, "Have you called install_node before this install_element?\n"); exit (EXIT_FAILURE); } @@ -371,6 +372,7 @@ uninstall_element (enum node_type ntype, struct cmd_element *cmd) { fprintf (stderr, "Command node %d doesn't exist, please check it\n", ntype); + fprintf (stderr, "Have you called install_node before this install_element?\n"); exit (EXIT_FAILURE); }