summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2008-07-13 22:37:47 +0900
committerJosé Fonseca <[email protected]>2008-07-13 23:37:40 +0900
commit17af66fc1a141920969ddf404bd7ffb52a94fb31 (patch)
tree09f1d29e03203d856b74da7a9c0eb197afea0f58
parentf5c51ebd2afdfc87de40dca115526a5e0f6ab115 (diff)
pb: buffer over/underflows are errors.
-rw-r--r--src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c
index acb9d7ad146..affa6aa85c4 100644
--- a/src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c
+++ b/src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c
@@ -142,12 +142,12 @@ pb_debug_buffer_destroy(struct pb_buffer *_buf)
assert(map);
if(map) {
if(!check_random_pattern(map, buf->underflow_size)) {
- debug_printf("buffer underflow\n");
+ debug_error("buffer underflow detected\n");
debug_assert(0);
}
if(!check_random_pattern(map + buf->underflow_size + buf->base.base.size,
buf->overflow_size)) {
- debug_printf("buffer overflow\n");
+ debug_error("buffer overflow detected\n");
debug_assert(0);
}
pb_unmap(buf->buffer);