diff options
author | Steve Block | 2012-01-05 16:25:38 -0600 |
---|---|---|
committer | Steve Block | 2012-01-05 16:25:38 -0600 |
commit | ae8b56c0d17a97aff0b98e6405c7cc9811bbbc3d (patch) | |
tree | f860c0f93c3b1e49c97912f31458fcfd79ba8602 /libnetutils | |
parent | fe71a61e5b0cb666675900d206251a7c18ed944b (diff) | |
download | platform-system-core-ae8b56c0d17a97aff0b98e6405c7cc9811bbbc3d.tar.gz platform-system-core-ae8b56c0d17a97aff0b98e6405c7cc9811bbbc3d.tar.xz platform-system-core-ae8b56c0d17a97aff0b98e6405c7cc9811bbbc3d.zip |
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.c | 2 | ||||
-rw-r--r-- | libnetutils/packet.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libnetutils/ifc_utils.c b/libnetutils/ifc_utils.c index f08a14d89..8564ed9cb 100644 --- a/libnetutils/ifc_utils.c +++ b/libnetutils/ifc_utils.c | |||
@@ -47,7 +47,7 @@ | |||
47 | #include <stdio.h> | 47 | #include <stdio.h> |
48 | #include <string.h> | 48 | #include <string.h> |
49 | #define ALOGD printf | 49 | #define ALOGD printf |
50 | #define LOGW printf | 50 | #define ALOGW printf |
51 | #endif | 51 | #endif |
52 | 52 | ||
53 | static int ifc_ctl_sock = -1; | 53 | static int ifc_ctl_sock = -1; |
diff --git a/libnetutils/packet.c b/libnetutils/packet.c index f9112b5d5..3ec83fe06 100644 --- a/libnetutils/packet.c +++ b/libnetutils/packet.c | |||
@@ -32,7 +32,7 @@ | |||
32 | #include <stdio.h> | 32 | #include <stdio.h> |
33 | #include <string.h> | 33 | #include <string.h> |
34 | #define ALOGD printf | 34 | #define ALOGD printf |
35 | #define LOGW printf | 35 | #define ALOGW printf |
36 | #endif | 36 | #endif |
37 | 37 | ||
38 | #include "dhcpmsg.h" | 38 | #include "dhcpmsg.h" |
@@ -209,7 +209,7 @@ int receive_packet(int s, struct dhcp_msg *msg) | |||
209 | /* validate IP header checksum */ | 209 | /* validate IP header checksum */ |
210 | sum = finish_sum(checksum(&packet.ip, sizeof(packet.ip), 0)); | 210 | sum = finish_sum(checksum(&packet.ip, sizeof(packet.ip), 0)); |
211 | if (sum != 0) { | 211 | if (sum != 0) { |
212 | LOGW("IP header checksum failure (0x%x)", packet.ip.check); | 212 | ALOGW("IP header checksum failure (0x%x)", packet.ip.check); |
213 | return -1; | 213 | return -1; |
214 | } | 214 | } |
215 | /* | 215 | /* |
@@ -231,7 +231,7 @@ int receive_packet(int s, struct dhcp_msg *msg) | |||
231 | sum = finish_sum(checksum(&packet, nread, 0)); | 231 | sum = finish_sum(checksum(&packet, nread, 0)); |
232 | packet.udp.check = temp; | 232 | packet.udp.check = temp; |
233 | if (temp != sum) { | 233 | if (temp != sum) { |
234 | LOGW("UDP header checksum failure (0x%x should be 0x%x)", sum, temp); | 234 | ALOGW("UDP header checksum failure (0x%x should be 0x%x)", sum, temp); |
235 | return -1; | 235 | return -1; |
236 | } | 236 | } |
237 | memcpy(msg, &packet.dhcp, dhcp_size); | 237 | memcpy(msg, &packet.dhcp, dhcp_size); |