commit | 2d831c5ef599d9e57c2e0fc66b5bd42e0248dcea | [log] [tgz] |
---|---|---|
author | chenbruce <chenbruce@google.com> | Sun Jul 25 22:22:57 2021 +0800 |
committer | chenbruce <chenbruce@google.com> | Wed Aug 18 03:43:29 2021 +0800 |
tree | 7555590230612b9db77d702a67ea9cc8b0cb40f4 | |
parent | 19c98df45b83eded0b65fdd2d044a5ff6d60369b [diff] |
use std::span for res_pquery Manual buffer handling may make mistakes easily. Replacing it by std::span. Bug: 196298216 Test: cd packages/modules/DnsResolver && atest Change-Id: I2a9ebb5c9f7eb9d09fa7bdcafe4748eb2042ca6b
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.