Skip to content
Snippets Groups Projects
Commit 5dd4030e authored by Vladimir Dergachev's avatar Vladimir Dergachev
Browse files

Make WARN_ONCE messages more informative.

parent 6d419fee
No related branches found
Tags gst-devtools-1.7.90
No related merge requests found
......@@ -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;\
} \
}
......
......@@ -143,7 +143,7 @@ static int r300_get_primitive_type(r300ContextPtr rmesa,
if(start+min_vertices>end){
static int warn_once=1;
if(warn_once){
fprintf(stderr, "%s:%s Not enough vertices to draw primitive %02x - help me !\n",
fprintf(stderr, "%s:%s ***WARN_ONCE*** Not enough vertices to draw primitive %02x - help me !\n",
__FILE__, __FUNCTION__,
prim & PRIM_MODE_MASK);
warn_once=0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment