Fix format warnings for width specifiers

Signed-off-by: Or Cohen <orc@fewbytes.com>
Fix trivial format warnings

Signed-off-by: Or Cohen <orc@fewbytes.com>
Fix calling strftime with NULL

OpenSolaris version of strftime accepts (char *)0 as format, and translates it
to the locale default, which is the same as "%c" for strftime().

http://www.unix.com/man-page/opensolaris/3/strftime/

Signed-off-by: Or Cohen <orc@fewbytes.com>