diff options
author | Vladimir Dergachev <volodya@freedesktop.org> | 2005-02-01 15:51:54 +0000 |
---|---|---|
committer | Vladimir Dergachev <volodya@freedesktop.org> | 2005-02-01 15:51:54 +0000 |
commit | 5dd4030e761d1c880e0860ba0d5173e8272da8d0 (patch) | |
tree | 8ebd854293e25d0b97a5542d9e21735e80e67518 /src/mesa/drivers/dri/r300/r300_context.h | |
parent | 6d419feec75ab30fde2033db8d99b65da41cc4fe (diff) |
Make WARN_ONCE messages more informative.
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_context.h')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_context.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_context.h b/src/mesa/drivers/dri/r300/r300_context.h index 47b3c8374d..0e0aa665a5 100644 --- a/src/mesa/drivers/dri/r300/r300_context.h +++ b/src/mesa/drivers/dri/r300/r300_context.h @@ -59,7 +59,8 @@ typedef struct r300_context *r300ContextPtr; #define WARN_ONCE(a) { \ static int warn=1; \ if(warn){ \ - fprintf(stderr, "***WARN_ONCE*** " a); \ + fprintf(stderr, "%s:%s line %d ***WARN_ONCE*** " a, \ + __FILE__, __FUNCTION__, __LINE__); \ warn=0;\ } \ } |