summaryrefslogtreecommitdiff
path: root/lib/command_graph.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/command_graph.c')
-rw-r--r--lib/command_graph.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/command_graph.c b/lib/command_graph.c
index b81e35ac9a..38baa802c3 100644
--- a/lib/command_graph.c
+++ b/lib/command_graph.c
@@ -6,8 +6,8 @@
* @author Quentin Young <qlyoung@cumulusnetworks.com>
*/
-#include <zebra.h>
#include "command_graph.h"
+#include <zebra.h>
#include "memory.h"
struct graph_node *
@@ -100,7 +100,7 @@ describe_node(struct graph_node *node, char* buffer, unsigned int bufsize)
snprintf(buffer, bufsize, node->text);
break;
case NUMBER_GN:
- snprintf(buffer, bufsize, "%d", node->value);
+ snprintf(buffer, bufsize, "%ld", node->value);
break;
case SELECTOR_GN:
snprintf(buffer, bufsize, "<>");