Generally, compilers produce warnings about this inconsistency for generic functions printf/vsprintf. Here is a complex indirect usage of those functions and therefore either code review should be careful or lint or other tools should report about this problem.