commit | a0429abc6d1b8c262053c87b4418c55316168e29 | [log] [tgz] |
---|---|---|
author | martinwu <martinwu@google.com> | Tue Jul 19 10:38:27 2022 +0000 |
committer | martinwu <martinwu@google.com> | Fri Jul 22 02:15:56 2022 +0000 |
tree | bf5021504bd11d207e952b81f48a185eef448f47 | |
parent | e5d3eb9e2e0a2973243276991982ddc1c2186810 [diff] |
Remove using errno in bindSocket() The bindSocket() writes error code into errno when bind failed with several retries. Remove using errno and make the bindSocket() to return 0 when bind success and return errno when bind fail. test: atest bug: 238040801 Change-Id: Iab0ecc8a0ae1ed14c5d731709c4203d840ac7744
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.