commit | 0771515ecc502e94eb1d01549da1bf3c55d8693a | [log] [tgz] |
---|---|---|
author | Bernie Innocenti <codewiz@google.com> | Thu Oct 24 20:11:54 2019 +0900 |
committer | Bernie Innocenti <codewiz@google.com> | Thu Oct 24 20:54:45 2019 +0900 |
tree | 418dadcdf3202c4d4ccf587d464ea1512165f1e9 | |
parent | effead990e4cbc5d2f257214aaf19650494566da [diff] |
Fix benign case of uninitialized variable When the "resnsend" command is throttled by the query limiter, rcode was uninitialized. The -Wconditional-uninitialized flag detects this, but since resNSendToAiError() doesn't read rcode when nsendAns < 0, there was no actual bug. Change-Id: I5a7cb2ab5d627ace5b12377025b99c380fbf0beb
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.