summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Arceri <tarceri@itsqueeze.com>2017-02-08 11:58:23 +1100
committerTimothy Arceri <tarceri@itsqueeze.com>2017-02-08 13:50:01 +1100
commit90014d07667294094cdb6d9c5c8ac3f2338781fa (patch)
tree541ebbbf7ba5d719a5b8680d037b760a4a668dd3
parentc674f11e42e25924084aaf825c7dba95748c66fe (diff)
mesa: use PRId64/PRIu64 when printing 64-bit ints
V2: actually use PRIu64 Reviewed-by: Dave Airlie <airlied@redhat.com>
-rw-r--r--src/mesa/main/uniform_query.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/uniform_query.cpp b/src/mesa/main/uniform_query.cpp
index f177e96333..3f7f705c59 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: