the iprintf macro. It was causing the actual format string and variable names to be written out, instead of substituting the values of the variables into the format string.