aubinator: use the correct format specifier for printing ptrdiff_t.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 4 Oct 2016 17:01:54 +0000 (10:01 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 5 Oct 2016 00:28:01 +0000 (17:28 -0700)
Fixes more warnings in 32-bit builds.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
src/intel/tools/aubinator.c

index 864385d..1798191 100644 (file)
@@ -941,7 +941,7 @@ aub_file_decode_batch(struct aub_file *file, struct gen_spec *spec)
       bias = 1;
       break;
    default:
-      printf("unknown opcode %d at %ld/%ld\n",
+      printf("unknown opcode %d at %td/%td\n",
              OPCODE(h), file->cursor - file->map,
              file->end - file->map);
       file->cursor = file->end;