commit | a9b9d87263e4946d8875b6c2520cabddef02170a | [log] [tgz] |
---|---|---|
author | Tom Cherry <tomcherry@google.com> | Tue Apr 24 14:13:30 2018 -0700 |
committer | Tom Cherry <tomcherry@google.com> | Tue Apr 24 14:19:32 2018 -0700 |
tree | 397edaeb3e30bf1d99e096254b410dbb43a26136 | |
parent | 6913d88d6d3791267b185f1c7a37363f4b4237e0 [diff] |
logd: notify kernel log readers of new messages LogBuffer::log() returns either a negative number on error or a positive number indicating the length of the message written. Therefore, the check to notify kernel log readers of a new message should be that this function's return value is > 0. Bug: 78209416 Test: `adb logcat -b kernel` updates when new log messages are present Change-Id: Icc18c0c22e62340994e5c26aedb72282d61c1541