mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
gnrc_uhcpc: use LOG_INFO() for configuration information
This commit is contained in:
parent
8cc9c5ebe7
commit
d99d0a0df0
@ -24,6 +24,7 @@
|
|||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "fmt.h"
|
#include "fmt.h"
|
||||||
|
|
||||||
|
static char addr_str[IPV6_ADDR_MAX_STR_LEN];
|
||||||
static kernel_pid_t gnrc_border_interface;
|
static kernel_pid_t gnrc_border_interface;
|
||||||
static kernel_pid_t gnrc_wireless_interface;
|
static kernel_pid_t gnrc_wireless_interface;
|
||||||
|
|
||||||
@ -88,7 +89,6 @@ static void _update_6ctx(const ipv6_addr_t *prefix, uint8_t prefix_len)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (cid < GNRC_SIXLOWPAN_CTX_SIZE) {
|
if (cid < GNRC_SIXLOWPAN_CTX_SIZE) {
|
||||||
static ipv6_addr_t addr_str[IPV6_ADDR_MAX_STR_LEN];
|
|
||||||
LOG_INFO("gnrc_uhcpc: uhcp_handle_prefix(): add compression context "
|
LOG_INFO("gnrc_uhcpc: uhcp_handle_prefix(): add compression context "
|
||||||
"%u for prefix %s/%u\n", cid,
|
"%u for prefix %s/%u\n", cid,
|
||||||
ipv6_addr_to_str(addr_str, prefix, sizeof(addr_str)),
|
ipv6_addr_to_str(addr_str, prefix, sizeof(addr_str)),
|
||||||
@ -153,9 +153,8 @@ void uhcp_handle_prefix(uint8_t *prefix, uint8_t prefix_len, uint16_t lifetime,
|
|||||||
#endif
|
#endif
|
||||||
gnrc_netapi_set(gnrc_wireless_interface, NETOPT_IPV6_ADDR_REMOVE, 0,
|
gnrc_netapi_set(gnrc_wireless_interface, NETOPT_IPV6_ADDR_REMOVE, 0,
|
||||||
&_prefix, sizeof(_prefix));
|
&_prefix, sizeof(_prefix));
|
||||||
print_str("gnrc_uhcpc: uhcp_handle_prefix(): configured new prefix ");
|
LOG_INFO("gnrc_uhcpc: uhcp_handle_prefix(): configured new prefix %s/64\n",
|
||||||
ipv6_addr_print((ipv6_addr_t*)prefix);
|
ipv6_addr_to_str(addr_str, (ipv6_addr_t *)prefix, sizeof(addr_str)));
|
||||||
puts("/64");
|
|
||||||
|
|
||||||
if (!ipv6_addr_is_unspecified(&_prefix)) {
|
if (!ipv6_addr_is_unspecified(&_prefix)) {
|
||||||
gnrc_netapi_set(gnrc_wireless_interface, NETOPT_IPV6_ADDR_REMOVE, 0,
|
gnrc_netapi_set(gnrc_wireless_interface, NETOPT_IPV6_ADDR_REMOVE, 0,
|
||||||
@ -164,9 +163,8 @@ void uhcp_handle_prefix(uint8_t *prefix, uint8_t prefix_len, uint16_t lifetime,
|
|||||||
GNRC_IPV6_NIB_CONF_MULTIHOP_P6C
|
GNRC_IPV6_NIB_CONF_MULTIHOP_P6C
|
||||||
gnrc_ipv6_nib_abr_del(&_prefix);
|
gnrc_ipv6_nib_abr_del(&_prefix);
|
||||||
#endif
|
#endif
|
||||||
print_str("gnrc_uhcpc: uhcp_handle_prefix(): removed old prefix ");
|
LOG_INFO("gnrc_uhcpc: uhcp_handle_prefix(): removed old prefix %s/64\n",
|
||||||
ipv6_addr_print(&_prefix);
|
ipv6_addr_to_str(addr_str, &_prefix, sizeof(addr_str)));
|
||||||
puts("/64");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef MODULE_GNRC_SIXLOWPAN_CTX
|
#ifdef MODULE_GNRC_SIXLOWPAN_CTX
|
||||||
|
Loading…
Reference in New Issue
Block a user