Corrected printf formatting.

Wrong formatting specifiers were causing compiler warnings.