commit | 3771b6acbfcf68bdca405b115f155aafb8be6608 | [log] [tgz] |
---|---|---|
author | Ken Chen <cken@google.com> | Fri Jan 12 09:16:35 2024 +0000 |
committer | Ken Chen <cken@google.com> | Fri Jan 12 09:16:38 2024 +0000 |
tree | 22348c12c3dc7a3f9aaf7480fda0066bad583966 | |
parent | a7212b94ea2072dfd5fdc65a19f64ddbb17ee0e8 [diff] |
[Code Health] Delete spurious code "num >= MAXADDRS" can never happen in the for-loop. Test: 1. Modify system/etc/hosts to have over than MAXADDRS records, like 10.0.0.1 www.test.com 10.0.0.2 www.test.com ... 10.0.0.36 www.test.com 2. Trigger gethostbyname by "adb shell ping www.test.com" 3. Observe the result and there is no failure Change-Id: I4347307be9479214c48492aee180d46e1b97d3f4
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.