diff options
author | Wink Saville <wink@google.com> | 2011-09-20 17:15:34 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-09-20 17:15:34 -0700 |
commit | 6656d921e80093ec48d97fa4236a3cc5259b663a (patch) | |
tree | 53a2790be28b9515a0a765e7a410857283cf37e2 | |
parent | 1d37ef6ecb25b2c2c974b32e14ce963882c7a699 (diff) | |
parent | 0c613613d757c544d6ec7e5678f49a631a99d72a (diff) | |
download | system_core-6656d921e80093ec48d97fa4236a3cc5259b663a.zip system_core-6656d921e80093ec48d97fa4236a3cc5259b663a.tar.gz system_core-6656d921e80093ec48d97fa4236a3cc5259b663a.tar.bz2 |
am 0c613613: Reduce connectivity logging.
* commit '0c613613d757c544d6ec7e5678f49a631a99d72a':
Reduce connectivity logging.
-rw-r--r-- | libnetutils/ifc_utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libnetutils/ifc_utils.c b/libnetutils/ifc_utils.c index 04b0dfa..c482736 100644 --- a/libnetutils/ifc_utils.c +++ b/libnetutils/ifc_utils.c @@ -739,7 +739,7 @@ int ifc_add_ipv4_route(const char *ifname, struct in_addr dst, int prefix_length struct in_addr gw) { int i =ifc_act_on_ipv4_route(SIOCADDRT, ifname, dst, prefix_length, gw); - printerr("ifc_add_ipv4_route(%s, xx, %d, xx) = %d", ifname, prefix_length, i); + if (DBG) printerr("ifc_add_ipv4_route(%s, xx, %d, xx) = %d", ifname, prefix_length, i); return i; } @@ -755,7 +755,7 @@ int ifc_add_ipv6_route(const char *ifname, struct in6_addr dst, int prefix_lengt int ifc_add_route(const char *ifname, const char *dst, int prefix_length, const char *gw) { int i = ifc_act_on_route(SIOCADDRT, ifname, dst, prefix_length, gw); - printerr("ifc_add_route(%s, %s, %d, %s) = %d", ifname, dst, prefix_length, gw, i); + if (DBG) printerr("ifc_add_route(%s, %s, %d, %s) = %d", ifname, dst, prefix_length, gw, i); return i; } |