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:
@@ -287,6 +287,9 @@ struct PackageLoaderErrorOutput : BErrorOutput {
|
|||||||
|
|
||||||
virtual void PrintErrorVarArgs(const char* format, va_list args)
|
virtual void PrintErrorVarArgs(const char* format, va_list args)
|
||||||
{
|
{
|
||||||
|
char buffer[256];
|
||||||
|
vsnprintf(buffer, sizeof(buffer), format, args);
|
||||||
|
dprintf("%s", buffer);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user