rpl: addr_str not renamed to addr_str_mode
In PR #1404 addr_str was renamed to addr_str_mode, but at some places it was still referenced as addr_str. When enabling debug messages, the compiler complains.
This commit is contained in:
parent
f386de6203
commit
0f66a9e06e
@ -119,7 +119,7 @@ uint8_t rpl_init(int if_id)
|
|||||||
|
|
||||||
/* initialize objective function manager */
|
/* initialize objective function manager */
|
||||||
rpl_of_manager_init(&my_address);
|
rpl_of_manager_init(&my_address);
|
||||||
rpl_init_mode(&my_address);
|
rpl_init_mode(&my_address);
|
||||||
return SIXLOWERROR_SUCCESS;
|
return SIXLOWERROR_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -693,8 +693,8 @@ void rpl_recv_DAO_mode(void)
|
|||||||
/* route lifetime seconds = (DAO lifetime) * (Unit Lifetime) */
|
/* route lifetime seconds = (DAO lifetime) * (Unit Lifetime) */
|
||||||
|
|
||||||
DEBUG("Adding routing information: Target: %s, Source: %s, Lifetime: %u\n",
|
DEBUG("Adding routing information: Target: %s, Source: %s, Lifetime: %u\n",
|
||||||
ipv6_addr_to_str(addr_str, IPV6_MAX_ADDR_STR_LEN, &rpl_opt_target_buf->target),
|
ipv6_addr_to_str(addr_str_mode, IPV6_MAX_ADDR_STR_LEN, &rpl_opt_target_buf->target),
|
||||||
ipv6_addr_to_str(addr_str, IPV6_MAX_ADDR_STR_LEN, &ipv6_buf->srcaddr),
|
ipv6_addr_to_str(addr_str_mode, IPV6_MAX_ADDR_STR_LEN, &ipv6_buf->srcaddr),
|
||||||
(rpl_opt_transit_buf->path_lifetime * my_dodag->lifetime_unit));
|
(rpl_opt_transit_buf->path_lifetime * my_dodag->lifetime_unit));
|
||||||
rpl_add_routing_entry(&rpl_opt_target_buf->target, &ipv6_buf->srcaddr,
|
rpl_add_routing_entry(&rpl_opt_target_buf->target, &ipv6_buf->srcaddr,
|
||||||
rpl_opt_transit_buf->path_lifetime * my_dodag->lifetime_unit);
|
rpl_opt_transit_buf->path_lifetime * my_dodag->lifetime_unit);
|
||||||
@ -851,7 +851,7 @@ void rpl_send(ipv6_addr_t *destination, uint8_t *payload, uint16_t p_len, uint8_
|
|||||||
|
|
||||||
if (next_hop == NULL) {
|
if (next_hop == NULL) {
|
||||||
if (i_am_root) {
|
if (i_am_root) {
|
||||||
DEBUGF("[Error] destination unknown: %s\n", ipv6_addr_to_str(addr_str,
|
DEBUGF("[Error] destination unknown: %s\n", ipv6_addr_to_str(addr_str_mode,
|
||||||
IPV6_MAX_ADDR_STR_LEN, &ipv6_send_buf->destaddr));
|
IPV6_MAX_ADDR_STR_LEN, &ipv6_send_buf->destaddr));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user