mesa: use PRId64/PRIu64 when printing 64-bit ints
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 8 Feb 2017 00:58:23 +0000 (11:58 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 8 Feb 2017 02:50:01 +0000 (13:50 +1100)
V2: actually use PRIu64

Reviewed-by: Dave Airlie <airlied@redhat.com>
src/mesa/main/uniform_query.cpp

index f177e9633370ab14d4ae3a42f3f854090b505c8c..3f7f705c59831b2c795c990dace8c55fe20b611e 100644 (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: