trema/trema — pull request #216 by y-higuchi (2012-12-14 13:30:52+00:00)
Title: Add format check attribute to log functions

- Add [format attribute](http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html#index-Wformat-2584) to trema's log functions to make gcc check for format string and given arguments.
- Fix errors detected by gcc's printf attribute check.

Note:
- There is no portable length modifier for time_t, so this patch upcast time_t to int64_t and use 64bit integer type as a format string, when time_t is used.