summaryrefslogtreecommitdiff
path: root/lib/command_graph.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2016-08-04 18:16:26 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2016-08-04 18:16:26 +0000
commitb3899769660fe891d5ea845e8ea64988743c1ccd (patch)
tree90ab48a130e27273fe4bb04cc93379cddbf6e455 /lib/command_graph.c
parentef955a80a635f5fb821a640f7e1d7aaac8ec5e5e (diff)
lib: Unrefactor to signed long long for ranges
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/command_graph.c')
-rw-r--r--lib/command_graph.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/command_graph.c b/lib/command_graph.c
index d420b1c063..50be35044a 100644
--- a/lib/command_graph.c
+++ b/lib/command_graph.c
@@ -125,7 +125,7 @@ describe_node(struct graph_node *node, char* buffer, unsigned int bufsize)
snprintf(buffer, bufsize, node->text);
break;
case NUMBER_GN:
- snprintf(buffer, bufsize, "%ld", node->value);
+ snprintf(buffer, bufsize, "%lld", node->value);
break;
case SELECTOR_GN:
snprintf(buffer, bufsize, "<>");
@@ -182,10 +182,10 @@ dump_node (struct graph_node *node)
describe_node(node, buf, 50);
fprintf(stderr, "%s[%d]\n", buf, node->type);
fprintf(stderr, "\t->text: %s\n", node->text);
- fprintf(stderr, "\t->value: %ld\n", node->value);
+ fprintf(stderr, "\t->value: %lld\n", node->value);
fprintf(stderr, "\t->is_start: %d\n", node->is_start);
fprintf(stderr, "\t->element: %p\n", node->element);
- fprintf(stderr, "\t->min: %d\n->max: %d\n", node->min, node->max);
+ fprintf(stderr, "\t->min: %lld\n->max: %lld\n", node->min, node->max);
fprintf(stderr, "\t->arg: %s\n", node->arg);
fprintf(stderr, "\t->refs: %d\n", node->refs);
fprintf(stderr, "\tnum children: %d\n", vector_active(node->children));