aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/os/log.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-03-30 13:47:10 +0000
committermarha <marha@users.sourceforge.net>2010-03-30 13:47:10 +0000
commit5dbc7d7086127f7e65912e505066be821e30661d (patch)
tree5dd1f2696bd3f90dad2035d901f445adccfb9aae /xorg-server/os/log.c
parent15272ab4ed1e6250412fccd48200ed9eae59608f (diff)
downloadvcxsrv-5dbc7d7086127f7e65912e505066be821e30661d.tar.gz
vcxsrv-5dbc7d7086127f7e65912e505066be821e30661d.tar.bz2
vcxsrv-5dbc7d7086127f7e65912e505066be821e30661d.zip
xserver and xkeyboard-config git update 30/3/2010
Diffstat (limited to 'xorg-server/os/log.c')
-rw-r--r--xorg-server/os/log.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/xorg-server/os/log.c b/xorg-server/os/log.c
index f4832c12f..c1301d754 100644
--- a/xorg-server/os/log.c
+++ b/xorg-server/os/log.c
@@ -117,6 +117,12 @@ static char *saveBuffer = NULL;
static int bufferSize = 0, bufferUnused = 0, bufferPos = 0;
static Bool needBuffer = TRUE;
+#ifdef __APPLE__
+static char __crashreporter_info_buff__[4096] = {0};
+static const char *__crashreporter_info__ = &__crashreporter_info_buff__[0];
+asm (".desc __crashreporter_info__, 0x10");
+#endif
+
/* Prefix strings for log messages. */
#ifndef X_UNKNOWN_STRING
#define X_UNKNOWN_STRING "(\?\?)"
@@ -527,6 +533,9 @@ FatalError(const char *f, ...)
ErrorF("\nFatal server error:\n");
va_start(args, f);
+#ifdef __APPLE__
+ (void)vsnprintf(__crashreporter_info_buff__, sizeof(__crashreporter_info_buff__), f, args);
+#endif
VErrorF(f, args);
va_end(args);
ErrorF("\n");