Merge "liblog: fix an undefined-behavor in __write_to_log_daemon()" am: a3b6d30ba7
am: 68a6676c77

Change-Id: I689a3b632393651eeee6272095b4d1a28633393d