commit | bf6667104de8c1512927d33df77dc8de571b05ef | [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 | ab8eae5af2b9b0889b43f9b6e7406f77332c10fa [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