Add some log functions.

1. Add REPORT_*_SYS macros
   The macros can report the cause of the LINUX API error.