in reply to warnings when using % and printf

printf() uses the same formats as sprintf().

So here's a pointer to the sprintf() documentation, in case it helps you.