commit | c4f469ad1075f6840346e8810fd02ee25c091d74 | [log] [tgz] |
---|---|---|
author | Bernie Innocenti <codewiz@google.com> | Thu Oct 03 15:50:06 2019 +0900 |
committer | Bernie Innocenti <codewiz@google.com> | Fri Oct 04 18:46:04 2019 +0900 |
tree | b3e467bdc01a381fdef7ff0867cd4c9312e78a9c | |
parent | 802eccd2f8eaec85027f77d7183efb0b944fbf68 [diff] |
Convert Cache to a C++ object with a constructor No functionality changes. One thing to watch out for in reviews: switching from calloc() to new does not guarantee that all POD fields will be zero-initialized. Test: cd packages/modules/DnsResolver && atest Change-Id: I7f6421b315a6cab650fd7d5d788b4fc6704205cf
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.