commit | 88f87556b68e429dff34d57fd84073d5bb9e0a0d | [log] [tgz] |
---|---|---|
author | Maciej Żenczykowski <maze@google.com> | Thu Apr 23 08:48:36 2020 -0700 |
committer | Maciej Żenczykowski <maze@google.com> | Thu Apr 23 13:40:18 2020 -0700 |
tree | cb0e80def78db21ecd0c9d07df4f8ad744573d4a | |
parent | c37d081df15cacfe8d65ba9e98df4b2390119a54 [diff] |
DnsResolver/res_send.cpp - fixes bugprone-argument-comment warning Fixes: packages/modules/DnsResolver/res_send.cpp:868:38: error: argument name 'sigmask' in comment does not match parameter name '__mask' [bugprone-argument-comment,-warnings-as-errors] int n = ppoll(&fds, 1, &timeout, /*sigmask=*/NULL); ^~~~~~~~~~~~ /*__mask=*/ bionic/libc/include/poll.h:64:129: note: '__mask' declared here int ppoll(struct pollfd* _Nullable __fds, nfds_t __count, const struct timespec* _Nullable __timeout, const sigset_t* _Nullable __mask) __INTRODUCED_IN(21); ^ packages/modules/DnsResolver/res_send.cpp:907:67: error: argument name 'sigmask' in comment does not match parameter name '__mask' [bugprone-argument-comment,-warnings-as-errors] const int n = ppoll(fdset.data(), fdset.size(), &timeout, /*sigmask=*/nullptr); ^~~~~~~~~~~~ /*__mask=*/ bionic/libc/include/poll.h:64:129: note: '__mask' declared here int ppoll(struct pollfd* _Nullable __fds, nfds_t __count, const struct timespec* _Nullable __timeout, const sigset_t* _Nullable __mask) __INTRODUCED_IN(21); Test: builds Bug: 153035880 Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: Iff535accfc09968f070a93daff9e4a5aded2e4bc
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.