mesa: Fix printf format specifier warn of the ptrdiff_t
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>
Wed, 29 Jul 2015 11:49:45 +0000 (21:49 +1000)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 12 Aug 2015 23:25:26 +0000 (01:25 +0200)
See §7.19.6.1, paragraph 7 of the ISO C specification.

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/bufferobj.c

index 6ddcc5c..1cdea93 100644 (file)
@@ -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;
    }