r600g: fix printf warning
authorMarek Olšák <maraeo@gmail.com>
Sun, 9 Sep 2012 23:28:40 +0000 (01:28 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 10 Sep 2012 22:02:58 +0000 (00:02 +0200)
src/gallium/drivers/r600/compute_memory_pool.c

index d612a4598433a49e7f2bfec6746748209ccafc24..002bdbeb9febd00fecf53457f7e7aabe4e4bcb6f 100644 (file)
@@ -40,6 +40,7 @@
 #include "r600_formats.h"
 #include "compute_memory_pool.h"
 #include "evergreen_compute_internal.h"
+#include <inttypes.h>
 
 static struct r600_texture * create_pool_texture(struct r600_screen * screen,
                unsigned size_in_dw)
@@ -375,7 +376,7 @@ void compute_memory_free(struct compute_memory_pool* pool, int64_t id)
                }
        }
 
-       fprintf(stderr, "Internal error, invalid id %ld "
+       fprintf(stderr, "Internal error, invalid id %"PRIi64" "
                "for compute_memory_free\n", id);
 
        assert(0 && "error");