Mesa (master): r600g: fix printf warning

Marek Olšák mareko at kemper.freedesktop.org
Mon Sep 10 22:04:30 UTC 2012


Module: Mesa
Branch: master
Commit: 830b6f327307885d77af7441fb06cc5d1e32c12d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=830b6f327307885d77af7441fb06cc5d1e32c12d

Author: Marek Olšák <maraeo at gmail.com>
Date:   Mon Sep 10 01:28:40 2012 +0200

r600g: fix printf warning

---

 src/gallium/drivers/r600/compute_memory_pool.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/r600/compute_memory_pool.c b/src/gallium/drivers/r600/compute_memory_pool.c
index d612a45..002bdbe 100644
--- a/src/gallium/drivers/r600/compute_memory_pool.c
+++ b/src/gallium/drivers/r600/compute_memory_pool.c
@@ -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");




More information about the mesa-commit mailing list