diff options
author | Chase Douglas <chase.douglas@canonical.com> | 2012-04-09 09:41:38 -0700 |
---|---|---|
committer | Chase Douglas <chase.douglas@ubuntu.com> | 2012-05-14 14:01:32 -0700 |
commit | 9f258bdbd0d19fba7749095f196e09dc22d9a3a8 (patch) | |
tree | 385d9a52ed4d2811901ff83e67cc5d1540056c06 | |
parent | 01dbec4938c0acfdd3f7f646c3639d6a17cc5461 (diff) |
Log in OsVendorFatalError() in a signal safe mannersignal-logging-v4
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>
-rw-r--r-- | hw/xfree86/common/xf86Init.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c index f42dd1083..d1c262dda 100644 --- a/hw/xfree86/common/xf86Init.c +++ b/hw/xfree86/common/xf86Init.c @@ -1056,16 +1056,16 @@ void OsVendorFatalError(const char *f, va_list args) { #ifdef VENDORSUPPORT - ErrorF("\nPlease refer to your Operating System Vendor support pages\n" - "at %s for support on this crash.\n", VENDORSUPPORT); + ErrorSigSafe("\nPlease refer to your Operating System Vendor support " + "pages\nat %s for support on this crash.\n", VENDORSUPPORT); #else - ErrorF("\nPlease consult the " XVENDORNAME " support \n" - "\t at " __VENDORDWEBSUPPORT__ "\n for help. \n"); + ErrorSigSafe("\nPlease consult the " XVENDORNAME " support \n\t at " + __VENDORDWEBSUPPORT__ "\n for help. \n"); #endif if (xf86LogFile && xf86LogFileWasOpened) - ErrorF("Please also check the log file at \"%s\" for additional " - "information.\n", xf86LogFile); - ErrorF("\n"); + ErrorSigSafe("Please also check the log file at \"%s\" for additional " + "information.\n", xf86LogFile); + ErrorSigSafe("\n"); } int |