summaryrefslogtreecommitdiff
path: root/src/inet.c
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-03-14 15:28:48 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-03-19 11:08:18 (GMT)
commit8786e86df98db98fcdcf73dc9a0e7ae8da120566 (patch)
tree0d9d54636c81cfa9ee6bbea60ce4044703790929 /src/inet.c
parent442b1fe603e005814f592a3dbcf0d0bfb13f961c (diff)
downloadconnman-8786e86df98db98fcdcf73dc9a0e7ae8da120566.zip
connman-8786e86df98db98fcdcf73dc9a0e7ae8da120566.tar.gz
connman-8786e86df98db98fcdcf73dc9a0e7ae8da120566.tar.bz2
inet: Fix debugging prints
Diffstat (limited to 'src/inet.c')
-rw-r--r--src/inet.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/inet.c b/src/inet.c
index 220ea14..5b81273 100644
--- a/src/inet.c
+++ b/src/inet.c
@@ -654,6 +654,9 @@ int connman_inet_add_network_route(int index, const char *host,
struct sockaddr_in addr;
int sk, err;
+ DBG("index %d host %s gateway %s netmask %s", index,
+ host, gateway, netmask);
+
sk = socket(PF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0);
if (sk < 0)
return -1;
@@ -716,6 +719,8 @@ int connman_inet_del_network_route(int index, const char *host)
struct sockaddr_in addr;
int sk, err;
+ DBG("index %d host %s", index, host);
+
sk = socket(PF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0);
if (sk < 0)
return -1;
@@ -852,7 +857,7 @@ int connman_inet_set_ipv6_gateway_address(int index, const char *gateway)
struct in6_rtmsg rt;
int sk, err;
- DBG("index %d, gateway %s", index, gateway);
+ DBG("index %d gateway %s", index, gateway);
if (gateway == NULL)
return -EINVAL;
@@ -889,7 +894,7 @@ int connman_inet_clear_ipv6_gateway_address(int index, const char *gateway)
struct in6_rtmsg rt;
int sk, err;
- DBG("index %d, gateway %s", index, gateway);
+ DBG("index %d gateway %s", index, gateway);
if (gateway == NULL)
return -EINVAL;
@@ -928,6 +933,8 @@ int connman_inet_set_gateway_address(int index, const char *gateway)
struct sockaddr_in addr;
int sk, err;
+ DBG("index %d gateway %s", index, gateway);
+
sk = socket(PF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0);
if (sk < 0)
return -1;
@@ -977,7 +984,7 @@ int connman_inet_set_gateway_interface(int index)
struct sockaddr_in addr;
int sk, err;
- DBG("");
+ DBG("index %d", index);
sk = socket(PF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0);
if (sk < 0)
@@ -1023,7 +1030,7 @@ int connman_inet_set_ipv6_gateway_interface(int index)
const struct in6_addr any = IN6ADDR_ANY_INIT;
int sk, err;
- DBG("");
+ DBG("index %d", index);
sk = socket(PF_INET6, SOCK_DGRAM | SOCK_CLOEXEC, 0);
if (sk < 0)
@@ -1068,7 +1075,7 @@ int connman_inet_clear_gateway_address(int index, const char *gateway)
struct sockaddr_in addr;
int sk, err;
- DBG("");
+ DBG("index %d gateway %s", index, gateway);
sk = socket(PF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0);
if (sk < 0)
@@ -1119,7 +1126,7 @@ int connman_inet_clear_gateway_interface(int index)
struct sockaddr_in addr;
int sk, err;
- DBG("");
+ DBG("index %d", index);
sk = socket(PF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0);
if (sk < 0)
@@ -1165,7 +1172,7 @@ int connman_inet_clear_ipv6_gateway_interface(int index)
const struct in6_addr any = IN6ADDR_ANY_INIT;
int sk, err;
- DBG("");
+ DBG("index %d", index);
sk = socket(PF_INET6, SOCK_DGRAM | SOCK_CLOEXEC, 0);
if (sk < 0)