diff options
author | Marek Olšák <maraeo@gmail.com> | 2010-03-27 22:25:13 +0100 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2010-03-27 22:28:25 +0100 |
commit | 4b8d3480764daf45cbbc03d76cd8b7c81937f532 (patch) | |
tree | ac0576eefd2d73e8e863b3c69bb0a75088278693 /src/gallium/drivers/r300/r300_debug.c | |
parent | 0a82fadcdd0b6ebbc345c7c302da0e0efce40a98 (diff) | |
download | external_mesa3d-4b8d3480764daf45cbbc03d76cd8b7c81937f532.zip external_mesa3d-4b8d3480764daf45cbbc03d76cd8b7c81937f532.tar.gz external_mesa3d-4b8d3480764daf45cbbc03d76cd8b7c81937f532.tar.bz2 |
r300g: print errors even on non-debug builds
We really need to get these into bug reports.
Diffstat (limited to 'src/gallium/drivers/r300/r300_debug.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_debug.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gallium/drivers/r300/r300_debug.c b/src/gallium/drivers/r300/r300_debug.c index d6177577..016e8d6 100644 --- a/src/gallium/drivers/r300/r300_debug.c +++ b/src/gallium/drivers/r300/r300_debug.c @@ -22,6 +22,7 @@ #include "r300_context.h" +#include <stdio.h> struct debug_option { const char * name; @@ -69,7 +70,7 @@ void r300_init_debug(struct r300_screen * screen) } if (!opt->name) { - debug_printf("Unknown debug option: %s\n", options); + fprintf(stderr, "Unknown debug option: %s\n", options); printhint = TRUE; } @@ -81,10 +82,13 @@ void r300_init_debug(struct r300_screen * screen) } if (printhint || screen->debug & DBG_HELP) { - debug_printf("You can enable debug output by setting the RADEON_DEBUG environment variable\n" - "to a comma-separated list of debug options. Available options are:\n"); + fprintf(stderr, "You can enable debug output by setting " + "the RADEON_DEBUG environment variable\n" + "to a comma-separated list of debug options. " + "Available options are:\n"); + for(opt = debug_options; opt->name; ++opt) { - debug_printf(" %s: %s\n", opt->name, opt->description); + fprintf(stderr, " %s: %s\n", opt->name, opt->description); } } } |