summaryrefslogtreecommitdiffstats
path: root/libnetutils/ifc_utils.c
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2011-12-20 16:07:45 +0000
committerSteve Block <steveblock@google.com>2012-01-03 22:32:30 +0000
commit8d66c49258ac4f59bd67c23c9c914cca81f85b01 (patch)
tree24447dff0da16f6ef9af1512f1f4ff936e3014af /libnetutils/ifc_utils.c
parent0fdccb561d37022d4ccc82982de81c2b32617803 (diff)
downloadsystem_core-8d66c49258ac4f59bd67c23c9c914cca81f85b01.zip
system_core-8d66c49258ac4f59bd67c23c9c914cca81f85b01.tar.gz
system_core-8d66c49258ac4f59bd67c23c9c914cca81f85b01.tar.bz2
Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE
Bug: 5449033 Change-Id: I9244d927f14c750cd359ebffb1fc1c355a755d5a
Diffstat (limited to 'libnetutils/ifc_utils.c')
-rw-r--r--libnetutils/ifc_utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libnetutils/ifc_utils.c b/libnetutils/ifc_utils.c
index 0a2f760..f08a14d 100644
--- a/libnetutils/ifc_utils.c
+++ b/libnetutils/ifc_utils.c
@@ -46,7 +46,7 @@
#else
#include <stdio.h>
#include <string.h>
-#define LOGD printf
+#define ALOGD printf
#define LOGW printf
#endif
@@ -686,7 +686,7 @@ int ifc_remove_host_routes(const char *name)
init_sockaddr_in(&rt.rt_genmask, mask);
addr.s_addr = dest;
if (ioctl(ifc_ctl_sock, SIOCDELRT, &rt) < 0) {
- LOGD("failed to remove route for %s to %s: %s",
+ ALOGD("failed to remove route for %s to %s: %s",
ifname, inet_ntoa(addr), strerror(errno));
}
}
@@ -752,7 +752,7 @@ int ifc_set_default_route(const char *ifname, in_addr_t gateway)
ifc_init();
addr.s_addr = gateway;
if ((result = ifc_create_default_route(ifname, gateway)) < 0) {
- LOGD("failed to add %s as default route for %s: %s",
+ ALOGD("failed to add %s as default route for %s: %s",
inet_ntoa(addr), ifname, strerror(errno));
}
ifc_close();
@@ -773,7 +773,7 @@ int ifc_remove_default_route(const char *ifname)
rt.rt_flags = RTF_UP|RTF_GATEWAY;
init_sockaddr_in(&rt.rt_dst, 0);
if ((result = ioctl(ifc_ctl_sock, SIOCDELRT, &rt)) < 0) {
- LOGD("failed to remove default route for %s: %s", ifname, strerror(errno));
+ ALOGD("failed to remove default route for %s: %s", ifname, strerror(errno));
}
ifc_close();
return result;