Merge pull request #1 from sth/master

Fixes printf argument warnings