Use standard print format specifiers

Fixes -Wextra warnings
Merge pull request #1 from sth/master

Fixes printf argument warnings