Merge changes I51635278,I04c0038e

* changes:
  liblog: save errno through log writing
  libion: cleanup logging