Location: Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
Posts: 7,687
Thanks: 42
Thanked 637 Times in 625 Posts
My guess is there are percent signs in the values of the variables you are building the string with, which printf() recognizes as a conversion specifier, and expects an additional argument to complete the conversion.
So... why are you using printf() rather than just plain ol' print?