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 864385d9029555db625ee41ca84bd6c6a586c7dc..1798191f0bcb6904a21196dcbb6368628ae2d800 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;