summaryrefslogtreecommitdiffstats
path: root/libnetutils
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2012-01-05 22:25:38 +0000
committerSteve Block <steveblock@google.com>2012-01-05 22:25:38 +0000
commitae8b56c0d17a97aff0b98e6405c7cc9811bbbc3d (patch)
treef860c0f93c3b1e49c97912f31458fcfd79ba8602 /libnetutils
parentfe71a61e5b0cb666675900d206251a7c18ed944b (diff)
downloadsystem_core-ae8b56c0d17a97aff0b98e6405c7cc9811bbbc3d.zip
system_core-ae8b56c0d17a97aff0b98e6405c7cc9811bbbc3d.tar.gz
system_core-ae8b56c0d17a97aff0b98e6405c7cc9811bbbc3d.tar.bz2
Rename (IF_)LOGW(_IF) to (IF_)ALOGW(_IF) DO NOT MERGE
Bug: 5449033 Change-Id: I1e070511b6a538e9f1c94657356437a457d58882
Diffstat (limited to 'libnetutils')
-rw-r--r--libnetutils/ifc_utils.c2
-rw-r--r--libnetutils/packet.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/libnetutils/ifc_utils.c b/libnetutils/ifc_utils.c
index f08a14d..8564ed9 100644
--- a/libnetutils/ifc_utils.c
+++ b/libnetutils/ifc_utils.c
@@ -47,7 +47,7 @@
#include <stdio.h>
#include <string.h>
#define ALOGD printf
-#define LOGW printf
+#define ALOGW printf
#endif
static int ifc_ctl_sock = -1;
diff --git a/libnetutils/packet.c b/libnetutils/packet.c
index f9112b5..3ec83fe 100644
--- a/libnetutils/packet.c
+++ b/libnetutils/packet.c
@@ -32,7 +32,7 @@
#include <stdio.h>
#include <string.h>
#define ALOGD printf
-#define LOGW printf
+#define ALOGW printf
#endif
#include "dhcpmsg.h"
@@ -209,7 +209,7 @@ int receive_packet(int s, struct dhcp_msg *msg)
/* validate IP header checksum */
sum = finish_sum(checksum(&packet.ip, sizeof(packet.ip), 0));
if (sum != 0) {
- LOGW("IP header checksum failure (0x%x)", packet.ip.check);
+ ALOGW("IP header checksum failure (0x%x)", packet.ip.check);
return -1;
}
/*
@@ -231,7 +231,7 @@ int receive_packet(int s, struct dhcp_msg *msg)
sum = finish_sum(checksum(&packet, nread, 0));
packet.udp.check = temp;
if (temp != sum) {
- LOGW("UDP header checksum failure (0x%x should be 0x%x)", sum, temp);
+ ALOGW("UDP header checksum failure (0x%x should be 0x%x)", sum, temp);
return -1;
}
memcpy(msg, &packet.dhcp, dhcp_size);