Fix format specifiers for sprintf.