Skip to content
Snippets Groups Projects
Commit ee9a9fc8 authored by Oleg Hahm's avatar Oleg Hahm
Browse files

Merge pull request #4405 from cgundogan/pr/rpl/shell_fix

rpl: shell: do not use PRIu64
parents f2e6ba0e c56f8530
No related branches found
No related tags found
No related merge requests found
...@@ -203,11 +203,12 @@ int _gnrc_rpl_dodag_show(void) ...@@ -203,11 +203,12 @@ int _gnrc_rpl_dodag_show(void)
cleanup = dodag->instance->cleanup < 0 ? 0 : dodag->instance->cleanup; cleanup = dodag->instance->cleanup < 0 ? 0 : dodag->instance->cleanup;
printf("\tdodag [%s | R: %d | OP: %s | CL: %" PRIi8 "s | " printf("\tdodag [%s | R: %d | OP: %s | CL: %" PRIi8 "s | "
"TR(I=[%d,%d], k=%d, c=%d, TC=%" PRIu64 "s, TI=%" PRIu64 "s)]\n", "TR(I=[%d,%d], k=%d, c=%d, TC=%" PRIu32 "%" PRIu32 "s, TI=%" PRIu32 "%" PRIu32 "s)]\n",
ipv6_addr_to_str(addr_str, &dodag->dodag_id, sizeof(addr_str)), ipv6_addr_to_str(addr_str, &dodag->dodag_id, sizeof(addr_str)),
dodag->my_rank, (dodag->node_status == GNRC_RPL_LEAF_NODE ? "Leaf" : "Router"), dodag->my_rank, (dodag->node_status == GNRC_RPL_LEAF_NODE ? "Leaf" : "Router"),
cleanup, (1 << dodag->dio_min), dodag->dio_interval_doubl, dodag->trickle.k, cleanup, (1 << dodag->dio_min), dodag->dio_interval_doubl, dodag->trickle.k,
dodag->trickle.c, tc, ti); dodag->trickle.c, (uint32_t) (tc >> 32), (uint32_t) (tc & 0xFFFFFFFF),
(uint32_t) (ti >> 32), (uint32_t) (ti & 0xFFFFFFFF));
gnrc_rpl_parent_t *parent; gnrc_rpl_parent_t *parent;
LL_FOREACH(gnrc_rpl_instances[i].dodag.parents, parent) { LL_FOREACH(gnrc_rpl_instances[i].dodag.parents, parent) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment