liblog: add -Wall,-Wextra and do related clean-up.

Test: build
Change-Id: I3b33f2b896cb8bf7ad9edf110d1739d559028282
5 files changed