Mesa (master): mesa: Don' t spam the console in a debug build unless some spam is requested.
Eric Anholt
anholt at kemper.freedesktop.org
Thu Nov 18 01:20:04 UTC 2010
Module: Mesa
Branch: master
Commit: 03ff02d08b92ca3b7da0c22aef3042677c7fb2da
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=03ff02d08b92ca3b7da0c22aef3042677c7fb2da
Author: Eric Anholt <eric at anholt.net>
Date: Sat Nov 13 14:30:01 2010 -0800
mesa: Don't spam the console in a debug build unless some spam is requested.
It's annoying to use test suites under a Mesa debug build because
pretty output is cluttered with stderr's continuous reports that
you're still using the debug driver.
---
src/mesa/main/context.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 4cb6486..b132030 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -412,8 +412,10 @@ one_time_init( struct gl_context *ctx )
}
#if defined(DEBUG) && defined(__DATE__) && defined(__TIME__)
- _mesa_debug(ctx, "Mesa %s DEBUG build %s %s\n",
- MESA_VERSION_STRING, __DATE__, __TIME__);
+ if (MESA_VERBOSE != 0) {
+ _mesa_debug(ctx, "Mesa %s DEBUG build %s %s\n",
+ MESA_VERSION_STRING, __DATE__, __TIME__);
+ }
#endif
}
More information about the mesa-commit
mailing list