summaryrefslogtreecommitdiffstats
path: root/libnetutils/packet.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/packet.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/packet.c')
-rw-r--r--libnetutils/packet.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libnetutils/packet.c b/libnetutils/packet.c
index 9388345..f9112b5 100644
--- a/libnetutils/packet.c
+++ b/libnetutils/packet.c
@@ -31,7 +31,7 @@
#else
#include <stdio.h>
#include <string.h>
-#define LOGD printf
+#define ALOGD printf
#define LOGW printf
#endif
@@ -179,23 +179,23 @@ int receive_packet(int s, struct dhcp_msg *msg)
is_valid = 0;
if (nread < (int)(sizeof(struct iphdr) + sizeof(struct udphdr))) {
#if VERBOSE
- LOGD("Packet is too small (%d) to be a UDP datagram", nread);
+ ALOGD("Packet is too small (%d) to be a UDP datagram", nread);
#endif
} else if (packet.ip.version != IPVERSION || packet.ip.ihl != (sizeof(packet.ip) >> 2)) {
#if VERBOSE
- LOGD("Not a valid IP packet");
+ ALOGD("Not a valid IP packet");
#endif
} else if (nread < ntohs(packet.ip.tot_len)) {
#if VERBOSE
- LOGD("Packet was truncated (read %d, needed %d)", nread, ntohs(packet.ip.tot_len));
+ ALOGD("Packet was truncated (read %d, needed %d)", nread, ntohs(packet.ip.tot_len));
#endif
} else if (packet.ip.protocol != IPPROTO_UDP) {
#if VERBOSE
- LOGD("IP protocol (%d) is not UDP", packet.ip.protocol);
+ ALOGD("IP protocol (%d) is not UDP", packet.ip.protocol);
#endif
} else if (packet.udp.dest != htons(PORT_BOOTP_CLIENT)) {
#if VERBOSE
- LOGD("UDP dest port (%d) is not DHCP client", ntohs(packet.udp.dest));
+ ALOGD("UDP dest port (%d) is not DHCP client", ntohs(packet.udp.dest));
#endif
} else {
is_valid = 1;