Mesa (master): mesa: silence a printf warning

Brian Paul brianp at kemper.freedesktop.org
Wed Jul 14 21:19:43 UTC 2010


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

Author: Brian Paul <brianp at vmware.com>
Date:   Wed Jul 14 14:36:25 2010 -0600

mesa: silence a printf warning

---

 src/mesa/main/varray.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c
index da374ac..6c0cfc4 100644
--- a/src/mesa/main/varray.c
+++ b/src/mesa/main/varray.c
@@ -1368,10 +1368,10 @@ print_array(const char *name, GLint index, const struct gl_client_array *array)
       printf("  %s[%d]: ", name, index);
    else
       printf("  %s: ", name);
-   printf("Ptr=%p, Type=0x%x, Size=%d, ElemSize=%u, Stride=%d, Buffer=%u(Size %u), MaxElem=%u\n",
+   printf("Ptr=%p, Type=0x%x, Size=%d, ElemSize=%u, Stride=%d, Buffer=%u(Size %lu), MaxElem=%u\n",
 	  array->Ptr, array->Type, array->Size,
 	  array->_ElementSize, array->StrideB,
-	  array->BufferObj->Name, array->BufferObj->Size,
+	  array->BufferObj->Name, (unsigned long) array->BufferObj->Size,
 	  array->_MaxElement);
 }
 




More information about the mesa-commit mailing list