Mesa (mesa_7_7_branch): gallium/util: Silence format warnings.

Vinson Lee vlee at kemper.freedesktop.org
Fri Jan 1 23:33:54 UTC 2010


Module: Mesa
Branch: mesa_7_7_branch
Commit: dac82c378a94f0f42bef3f7e33e11e4eafb9872b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=dac82c378a94f0f42bef3f7e33e11e4eafb9872b

Author: Vinson Lee <vlee at vmware.com>
Date:   Fri Jan  1 15:32:52 2010 -0800

gallium/util: Silence format warnings.

---

 src/gallium/auxiliary/util/u_debug_memory.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_debug_memory.c b/src/gallium/auxiliary/util/u_debug_memory.c
index 7623cb9..d6484f4 100644
--- a/src/gallium/auxiliary/util/u_debug_memory.c
+++ b/src/gallium/auxiliary/util/u_debug_memory.c
@@ -297,9 +297,9 @@ debug_memory_end(unsigned long start_no)
 
       if((start_no <= hdr->no && hdr->no < last_no) ||
 	 (last_no < start_no && (hdr->no < last_no || start_no <= hdr->no))) {
-	 debug_printf("%s:%u:%s: %u bytes at %p not freed\n",
+	 debug_printf("%s:%u:%s: %lu bytes at %p not freed\n",
 		      hdr->file, hdr->line, hdr->function,
-		      hdr->size, ptr);
+		      (unsigned long) hdr->size, ptr);
 #if DEBUG_MEMORY_STACK
 	 debug_backtrace_dump(hdr->backtrace, DEBUG_MEMORY_STACK);
 #endif
@@ -315,8 +315,8 @@ debug_memory_end(unsigned long start_no)
    }
 
    if(total_size) {
-      debug_printf("Total of %u KB of system memory apparently leaked\n",
-		   (total_size + 1023)/1024);
+      debug_printf("Total of %lu KB of system memory apparently leaked\n",
+		   (unsigned long) (total_size + 1023)/1024);
    }
    else {
       debug_printf("No memory leaks detected.\n");




More information about the mesa-commit mailing list