@krukow 

see my comment on the pull request.

In this case, I have to use %ld because I want the leading zeros.