commit | e6830da1bac1d11c301b937f902fc59ac90eb0f0 | [log] [tgz] |
---|---|---|
author | Tom Cherry <tomcherry@google.com> | Mon Jan 27 13:49:26 2020 -0800 |
committer | Tom Cherry <tomcherry@google.com> | Mon Jan 27 13:50:44 2020 -0800 |
tree | 6a158f2e9c5625e9d35d525e6a095f31e9233465 | |
parent | 77ddcd303f44e43069ecf550f3a258e3b8c3d810 [diff] |
liblog: always restore errno in logging functions Some recent changes can have these logging functions potentially set errno. This change places android::base::ErrnoRestorer at the entry point of the public functions where we want to guarantee errno is restored to ensure this will not happen again. Test: build Change-Id: Iab4170ab16b9c7301474a509ee42d38b370b91a4