summaryrefslogtreecommitdiff
path: root/src/inet.c
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2011-06-22 10:37:38 (GMT)
committerSamuel Ortiz <sameo@linux.intel.com>2011-06-27 14:15:08 (GMT)
commitab6e48a30c3c130a6f17a781d278819b25dd29cb (patch)
tree75ec18c37b331efad90de806852af89feebc1373 /src/inet.c
parentcf412a3fd135c0ccf15cea917d38800cce5a4d66 (diff)
downloadconnman-ab6e48a30c3c130a6f17a781d278819b25dd29cb.zip
connman-ab6e48a30c3c130a6f17a781d278819b25dd29cb.tar.gz
connman-ab6e48a30c3c130a6f17a781d278819b25dd29cb.tar.bz2
inet: Changed error prints to print the error string.
Diffstat (limited to 'src/inet.c')
-rw-r--r--src/inet.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/inet.c b/src/inet.c
index e3adb7e..c55af06 100644
--- a/src/inet.c
+++ b/src/inet.c
@@ -783,7 +783,8 @@ int connman_inet_del_ipv6_network_route(int index, const char *host,
close(sk);
out:
if (err < 0)
- connman_error("Del IPv6 host route error");
+ connman_error("Del IPv6 host route error (%s)",
+ strerror(errno));
return err;
}
@@ -833,7 +834,8 @@ int connman_inet_add_ipv6_network_route(int index, const char *host,
close(sk);
out:
if (err < 0)
- connman_error("Set IPv6 host route error");
+ connman_error("Set IPv6 host route error (%s)",
+ strerror(errno));
return err;
}
@@ -875,7 +877,8 @@ int connman_inet_set_ipv6_gateway_address(int index, const char *gateway)
close(sk);
out:
if (err < 0)
- connman_error("Set default IPv6 gateway error");
+ connman_error("Set default IPv6 gateway error (%s)",
+ strerror(errno));
return err;
}
@@ -911,7 +914,8 @@ int connman_inet_clear_ipv6_gateway_address(int index, const char *gateway)
close(sk);
out:
if (err < 0)
- connman_error("Clear default IPv6 gateway error");
+ connman_error("Clear default IPv6 gateway error (%s)",
+ strerror(errno));
return err;
}