Module: Mesa Branch: master Commit: 90014d07667294094cdb6d9c5c8ac3f2338781fa URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=90014d07667294094cdb6d9c5c8ac3f2338781fa
Author: Timothy Arceri <tarc...@itsqueeze.com> Date: Wed Feb 8 11:58:23 2017 +1100 mesa: use PRId64/PRIu64 when printing 64-bit ints V2: actually use PRIu64 Reviewed-by: Dave Airlie <airl...@redhat.com> --- src/mesa/main/uniform_query.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/uniform_query.cpp b/src/mesa/main/uniform_query.cpp index f177e96..3f7f705 100644 --- a/src/mesa/main/uniform_query.cpp +++ b/src/mesa/main/uniform_query.cpp @@ -573,13 +573,13 @@ log_uniform(const void *values, enum glsl_base_type basicType, case GLSL_TYPE_UINT64: { uint64_t tmp; memcpy(&tmp, &v[i * 2].u, sizeof(tmp)); - printf("%lu ", tmp); + printf("%" PRIu64 " ", tmp); break; } case GLSL_TYPE_INT64: { int64_t tmp; memcpy(&tmp, &v[i * 2].u, sizeof(tmp)); - printf("%ld ", tmp); + printf("%" PRId64 " ", tmp); break; } case GLSL_TYPE_FLOAT: _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit