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
1 file changed
tree: 6a158f2e9c5625e9d35d525e6a095f31e9233465
  1. liblog/
  2. logcat/
  3. logd/
  4. logwrapper/