commit | ff464b128877ee75274d726aa9831fff3821dab7 | [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 | c1d1e0a5a03ff8436429e723ac32d4715f2463ed | |
parent | 347d6406f09f8bbb914a34e83bd01d3bee4de6c7 [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