Fix possible integer overflow
Set format(printf) attribute to __KReturn2 function

This way, users of this function will get notified when they use options
(like invalid number of formatted variables).
Suppress warning about anonymous variadic macros in C++98