dhcpv6: Add more debug prints
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Wed, 18 Jan 2012 13:24:57 +0000 (15:24 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 20 Jan 2012 00:35:24 +0000 (01:35 +0100)
src/dhcpv6.c

index fe2f0fa..04b8b2b 100644 (file)
@@ -804,6 +804,8 @@ int __connman_dhcpv6_start_renew(struct connman_network *network,
        if (dhcp == NULL)
                return -ENOENT;
 
+       DBG("network %p dhcp %p", network, dhcp);
+
        if (dhcp->timeout > 0) {
                g_source_remove(dhcp->timeout);
                dhcp->timeout = 0;
@@ -872,7 +874,8 @@ int __connman_dhcpv6_start_release(struct connman_network *network,
        if (dhcp == NULL)
                return -ENOENT;
 
-       DBG("dhcp %p stateless %d", dhcp, dhcp->stateless);
+       DBG("network %p dhcp %p client %p stateless %d", network, dhcp,
+                                       dhcp->dhcp_client, dhcp->stateless);
 
        if (dhcp->stateless == TRUE)
                return -EINVAL;
@@ -992,6 +995,8 @@ int __connman_dhcpv6_start_info(struct connman_network *network,
 
        connman_network_ref(network);
 
+       DBG("replace network %p dhcp %p", network, dhcp);
+
        g_hash_table_replace(network_table, network, dhcp);
 
        /* Initial timeout, RFC 3315, 18.1.5 */
@@ -1149,6 +1154,8 @@ int __connman_dhcpv6_start(struct connman_network *network,
 
        connman_network_ref(network);
 
+       DBG("replace network %p dhcp %p", network, dhcp);
+
        g_hash_table_replace(network_table, network, dhcp);
 
        /* Initial timeout, RFC 3315, 17.1.2 */