Mesa (master): aubinator: use the correct format specifier for printing ptrdiff_t.

Kenneth Graunke kwg at kemper.freedesktop.org
Wed Oct 5 04:36:38 UTC 2016


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

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Tue Oct  4 10:01:54 2016 -0700

aubinator: use the correct format specifier for printing ptrdiff_t.

Fixes more warnings in 32-bit builds.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>
Reviewed-by: Timothy Arceri <timothy.arceri at collabora.com>

---

 src/intel/tools/aubinator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/tools/aubinator.c b/src/intel/tools/aubinator.c
index 864385d..1798191 100644
--- a/src/intel/tools/aubinator.c
+++ b/src/intel/tools/aubinator.c
@@ -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;




More information about the mesa-commit mailing list