Fix bug in printing 64 bit integers. Also substitute format specifiers directly in fprintf() calls so that the compiler gets a chance at checking them against the actual parameter.
Fix bug in printing 64 bit integers.
Also substitute format specifiers directly in fprintf() calls so that
the compiler gets a chance at checking them against the actual parameter.

deweerdt/TSP,deweerdt/TSP,deweerdt/TSP,deweerdt/TSP,deweerdt/TSP