commit | 8a81c815fe09dab20e8867b5cd108d48a141a53d | [log] [tgz] |
---|---|---|
author | Maciej Żenczykowski <maze@google.com> | Thu Apr 23 08:35:01 2020 -0700 |
committer | Maciej Żenczykowski <maze@google.com> | Thu Apr 23 13:38:42 2020 -0700 |
tree | 6491737351123f4c4992da7b303cb6b7dad50136 | |
parent | 4a79e3c3f785687e1e738c8331dbefe4c96df738 [diff] |
DnsResolver/res_comp.cpp - fix bugprone-branch-clone warning Fixes: packages/modules/DnsResolver/res_comp.cpp:151:37: error: repeated branch in conditional chain [bugprone-branch-clone,-warnings-as-errors] } else if (periodchar(pch)) { ^ packages/modules/DnsResolver/res_comp.cpp:153:10: note: end of the original } else if (periodchar(nch) || nch == '\0') { ^ packages/modules/DnsResolver/res_comp.cpp:153:52: note: clone 1 starts here } else if (periodchar(nch) || nch == '\0') { ^ Test: builds Bug: 153035880 Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: I30ced2efe9f75c3f0efc0401c38ec83ea9ac9e32
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.