Use suitable types for variables.
Merge pull request #990 from monaka/pr-use-suitable-types-in-sprintf.c-20130312

Use suitable types for variables.