pb: buffer over/underflows are errors.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Sun, 13 Jul 2008 13:37:47 +0000 (22:37 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Sun, 13 Jul 2008 14:37:40 +0000 (23:37 +0900)
src/gallium/auxiliary/pipebuffer/pb_bufmgr_debug.c

index acb9d7ad146a38337a1d1a52c9845297a8b6ffb8..affa6aa85c42bbe6fe83d8bf6a645c955d10317a 100644 (file)
@@ -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);