bootloader packagefs: Implement PrintErrorVarArgs.

The package kit calls this function to print errors it hits
when reading packages. We should never hit this in "normal
operation", but it should help with debugging #14993.
This commit is contained in:
Augustin Cavalier
2019-04-22 19:41:04 -04:00
parent 5c1e072463
commit 1cb376132e
@@ -287,6 +287,9 @@ struct PackageLoaderErrorOutput : BErrorOutput {
virtual void PrintErrorVarArgs(const char* format, va_list args)
{
char buffer[256];
vsnprintf(buffer, sizeof(buffer), format, args);
dprintf("%s", buffer);
}
};