static buffer. When af_format is used more than once in the same printf statement, the second call will overwrite the first. Changed af_format to take a buffer and the buffer size where to place the formatted string.