mesa: use PRId64/PRIu64 when printing 64-bit ints

V2: actually use PRIu64

Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Timothy Arceri
2017-02-08 11:58:23 +11:00
parent c674f11e42
commit 90014d0766
+2 -2
View File
@@ -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: