The method doesn't print anything but merely formats a string using a subset of C printf, hence the renaming as printf(fmt, *args, &).
Also adds a #print_error(bytes) method to write to the standard error directly, without any formatting, that may be done separately (e.g. into a buffer) then written. Using a buffer is useful to avoid interleaved error messages with MT for example.
Keeps #print_error(fmt, *args) that now merely uses the other two methods.
The method doesn't print anything but merely formats a string using a subset of C printf, hence the renaming as
printf(fmt, *args, &)
.Also adds a
#print_error(bytes)
method to write to the standard error directly, without any formatting, that may be done separately (e.g. into a buffer) then written. Using a buffer is useful to avoid interleaved error messages with MT for example.Keeps
#print_error(fmt, *args)
that now merely uses the other two methods.This has been extracted from #14599.