Corrected printf formatting.

Wrong formatting specifiers were causing compiling warnings.