aboutsummaryrefslogtreecommitdiff
path: root/mesalib
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-05-29 08:45:04 +0200
committermarha <marha@users.sourceforge.net>2012-05-29 08:45:04 +0200
commitce592e25d6303a8f4a8aa0e2918e0f72a35bf175 (patch)
tree845b108f004259a6e4f72ade3dd5e0521ab3952b /mesalib
parenteef864d36de97903007f04fad9fa43afe297745b (diff)
downloadvcxsrv-ce592e25d6303a8f4a8aa0e2918e0f72a35bf175.tar.gz
vcxsrv-ce592e25d6303a8f4a8aa0e2918e0f72a35bf175.tar.bz2
vcxsrv-ce592e25d6303a8f4a8aa0e2918e0f72a35bf175.zip
fontconfig libX11 mesa pixman xserver git update 29 May 2012
Diffstat (limited to 'mesalib')
-rw-r--r--mesalib/src/gallium/auxiliary/util/u_debug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesalib/src/gallium/auxiliary/util/u_debug.c b/mesalib/src/gallium/auxiliary/util/u_debug.c
index df1d8e68c..0a350cae7 100644
--- a/mesalib/src/gallium/auxiliary/util/u_debug.c
+++ b/mesalib/src/gallium/auxiliary/util/u_debug.c
@@ -48,9 +48,9 @@
void _debug_vprintf(const char *format, va_list ap)
{
+ static char buf[4096] = {'\0'};
#if defined(PIPE_OS_WINDOWS) || defined(PIPE_SUBSYSTEM_EMBEDDED)
/* We buffer until we find a newline. */
- static char buf[4096] = {'\0'};
size_t len = strlen(buf);
int ret = util_vsnprintf(buf + len, sizeof(buf) - len, format, ap);
if(ret > (int)(sizeof(buf) - len - 1) || util_strchr(buf + len, '\n')) {
@@ -58,8 +58,8 @@ void _debug_vprintf(const char *format, va_list ap)
buf[0] = '\0';
}
#else
- /* Just print as-is to stderr */
- vfprintf(stderr, format, ap);
+ util_vsnprintf(buf, sizeof(buf), format, ap);
+ os_log_message(buf);
#endif
}