Mesa (master): mesa: Fix printf format specifier warn of the ptrdiff_t

Marek Olšák mareko at kemper.freedesktop.org
Wed Aug 12 23:34:19 UTC 2015


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

Author: Edward O'Callaghan <eocallaghan at alterapraxis.com>
Date:   Wed Jul 29 21:49:45 2015 +1000

mesa: Fix printf format specifier warn of the ptrdiff_t

See §7.19.6.1, paragraph 7 of the ISO C specification.

Signed-off-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
Signed-off-by: Marek Olšák <marek.olsak at amd.com>

---

 src/mesa/main/bufferobj.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c
index 6ddcc5c..1cdea93 100644
--- a/src/mesa/main/bufferobj.c
+++ b/src/mesa/main/bufferobj.c
@@ -2373,7 +2373,7 @@ _mesa_map_buffer_range(struct gl_context *ctx,
 
    if (offset + length > bufObj->Size) {
       _mesa_error(ctx, GL_INVALID_VALUE,
-                  "%s(offset %ld + length %ld > buffer_size %ld)", func,
+                  "%s(offset %td + length %td > buffer_size %td)", func,
                   offset, length, bufObj->Size);
       return NULL;
    }




More information about the mesa-commit mailing list