commit | 23b1f138150a1abf2d7180edd6bd6a42f52989fe | [log] [tgz] |
---|---|---|
author | Stephen Hines <srhines@google.com> | Fri Aug 21 12:38:12 2020 -0700 |
committer | Stephen Hines <srhines@google.com> | Tue Aug 25 15:05:27 2020 -0700 |
tree | 4c7585debe6a63421e8b0c25b90526e2f81172f9 | |
parent | 957333d2a99861bc9e01a96605a6de1f4ea4cabd [diff] |
Fix tidy warnings for r399163 Clang update. Fix tidy warnings signed char -> int conversions. /disk/android_trees/aosp-master-plus-llvm/packages/modules/DnsResolver/res_comp.cpp:144:28: error: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [cert-str34-c,-warnings-as-errors] int pch = PERIOD, ch = *dn++; ^ /disk/android_trees/aosp-master-plus-llvm/packages/modules/DnsResolver/res_comp.cpp:147:19: error: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [cert-str34-c,-warnings-as-errors] int nch = *dn++; ^ /disk/android_trees/aosp-master-plus-llvm/packages/modules/DnsResolver/res_comp.cpp:168:18: error: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [cert-str34-c,-warnings-as-errors] while ((ch = *dn++) != '\0') ^ Fix tidy warnings for unused result by casting to void. /disk/android_trees/aosp-master-plus-llvm/packages/modules/DnsResolver/tests/dns_responder/dns_tls_frontend.cpp:155:5: error: the value returned by this function should be used [bugprone-unused-return-value,-warnings-as-errors] connect(backend_socket_.get(), backend_ai_res->ai_addr, backend_ai_res->ai_addrlen); ^ Bug: http://b/155835175 Test: m Change-Id: Iada74f5c50a563012bfd26cee9088a3a72371f56
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.