commit | a998b15775f37468713cc2a3c688feaca4a084e3 | [log] [tgz] |
---|---|---|
author | Greg Kaiser <gkaiser@google.com> | Tue Nov 16 10:43:13 2021 -0800 |
committer | Greg Kaiser <gkaiser@google.com> | Tue Nov 16 10:43:13 2021 -0800 |
tree | fced2c22999123c9fc22561576d4dd685c6a58b0 | |
parent | 1b2e16d64d92f71a006fd2dd42a81055987d93c6 [diff] |
Fix file open check fd.ok() returns a bool. The NOT of that method will auto-cast to a 0 or 1 as an int, and thus will never equal -1. So our previous check was always false. We remove the int comparison to fix this. Test: TreeHugger Change-Id: I20ad5eae79622f680c5516df422a7fef7ff7966b
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.