Log in OsVendorFatalError() in a signal safe manner
The function can be called from a fatal signal handler. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
d51aebdbf9
commit
505c8a2b2c
|
@ -1058,16 +1058,16 @@ void
|
||||||
OsVendorFatalError(const char *f, va_list args)
|
OsVendorFatalError(const char *f, va_list args)
|
||||||
{
|
{
|
||||||
#ifdef VENDORSUPPORT
|
#ifdef VENDORSUPPORT
|
||||||
ErrorF("\nPlease refer to your Operating System Vendor support pages\n"
|
ErrorFSigSafe("\nPlease refer to your Operating System Vendor support "
|
||||||
"at %s for support on this crash.\n", VENDORSUPPORT);
|
"pages\nat %s for support on this crash.\n", VENDORSUPPORT);
|
||||||
#else
|
#else
|
||||||
ErrorF("\nPlease consult the " XVENDORNAME " support \n"
|
ErrorFSigSafe("\nPlease consult the " XVENDORNAME " support \n\t at "
|
||||||
"\t at " __VENDORDWEBSUPPORT__ "\n for help. \n");
|
__VENDORDWEBSUPPORT__ "\n for help. \n");
|
||||||
#endif
|
#endif
|
||||||
if (xf86LogFile && xf86LogFileWasOpened)
|
if (xf86LogFile && xf86LogFileWasOpened)
|
||||||
ErrorF("Please also check the log file at \"%s\" for additional "
|
ErrorFSigSafe("Please also check the log file at \"%s\" for additional "
|
||||||
"information.\n", xf86LogFile);
|
"information.\n", xf86LogFile);
|
||||||
ErrorF("\n");
|
ErrorFSigSafe("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Reference in New Issue