commit | 10a902831e48dd3d3e3ced7620f384f3476d7dd6 | [log] [tgz] |
---|---|---|
author | Bernie Innocenti <codewiz@google.com> | Thu Jan 23 23:28:00 2020 +0900 |
committer | Bernie Innocenti <codewiz@google.com> | Fri Jan 24 01:18:47 2020 +0000 |
tree | ce9bc0dbf7afdb5586013d8c010a3a9b8b81005a | |
parent | f1deb1c9199a719bc7fa9bbb553ea2f75b2fbc5e [diff] |
Delete dead code in res_comp.cpp and misc cleanups No functionality changes, this is mostly meant to improve our code coverage and cleanup our headers a bit. - delete dead functions res_ownok() and res_mailok() - Move prototypes of the remaining functions to the new header res_comp.h - Replace resolv_private.h with res_comp.h as needed - Drop the dependency on Bionic's <resolv.h> wherever possible - Eliminate the horrible maybe_XXX() macros - Make res_hnok() and res_dnok() return a proper bool instead of 0 and 1 Change-Id: Ic2e27753355d873925044a7561ccb78bd2c2d162
This code uses LOG(X) for logging. Log levels are VERBOSE,DEBUG,INFO,WARNING and ERROR. The default setting is WARNING and logs relate to WARNING and ERROR will be shown. If you want to enable the DEBUG level logs, using following command. adb shell service call dnsresolver 10 i32 1 VERBOSE 0 DEBUG 1 INFO 2 WARNING 3 ERROR 4 Verbose resolver logs could contain PII -- do NOT enable in production builds.