_vscprintf
is not available on Android. Also vsprintf(NULL, fmt, ap)
does not work (produces seg fault), so there seems to be no way of calculating size of buffer required for vsnprintf to succeed?
Android sources indicate that __android_log_print
function just truncates strings to 1024 using vsnprintf...
How do you handle this scenario?