galahad: do map/unmap counting for resources
[mesa.git] / src / gallium / drivers / i965 / brw_batchbuffer.c
index 003b1fd5bf0f807be9fdc6bd8fe397587470152d..e80067f3b191830d72bc67335688a5f33c61cb82 100644 (file)
@@ -161,8 +161,8 @@ brw_batchbuffer_emit_reloc(struct brw_batchbuffer *batch,
    int ret;
 
    if (batch->ptr - batch->map > batch->buf->size) {
-      debug_printf("bad relocation ptr %p map %p offset %d size %d\n",
-                  batch->ptr, batch->map, batch->ptr - batch->map, batch->buf->size);
+      debug_printf("bad relocation ptr %p map %p offset %li size %i\n",
+                  batch->ptr, batch->map, (long) (batch->ptr - batch->map), batch->buf->size);
 
       return PIPE_ERROR_OUT_OF_MEMORY;
    }