From 6a484d19cbb974e1d944e042856b58222699dcd5 Mon Sep 17 00:00:00 2001 From: DipSwitch Date: Mon, 3 Oct 2016 11:56:22 +0200 Subject: [PATCH] ndp: fix debug in message in gnrc_ndp_internal_send_nbr_sol --- sys/net/gnrc/network_layer/ndp/internal/gnrc_ndp_internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/gnrc/network_layer/ndp/internal/gnrc_ndp_internal.c b/sys/net/gnrc/network_layer/ndp/internal/gnrc_ndp_internal.c index b2caf2227d..f8cb1e3c92 100644 --- a/sys/net/gnrc/network_layer/ndp/internal/gnrc_ndp_internal.c +++ b/sys/net/gnrc/network_layer/ndp/internal/gnrc_ndp_internal.c @@ -240,7 +240,7 @@ void gnrc_ndp_internal_send_nbr_sol(kernel_pid_t iface, ipv6_addr_t *src, ipv6_a size_t l2src_len = 0; DEBUG("ndp internal: send neighbor solicitation (iface: %" PRIkernel_pid ", src: %s, ", - iface, ipv6_addr_to_str(addr_str, src, sizeof(addr_str))); + iface, ipv6_addr_to_str(addr_str, src ? src : &ipv6_addr_unspecified, sizeof(addr_str))); DEBUG(" tgt: %s, ", ipv6_addr_to_str(addr_str, tgt, sizeof(addr_str))); DEBUG("dst: %s)\n", ipv6_addr_to_str(addr_str, dst, sizeof(addr_str)));