summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-07-02 17:23:03 -0600
committerBrian Paul <[email protected]>2012-07-05 08:07:25 -0600
commitdf2d81ea59993a77bd1f1ef96c5cf19ac692d5f7 (patch)
tree641efc5a1b5da8d810f63844efc4ea648131657e /src
parent1ab37a2284aa26d797d6ffb955a1e0bfb7aa67d3 (diff)
mesa: use the PRIx64 macro for printing 64-bit hexadecimal values
We'll revert the #define fprintf __mingw_fprintf change next. Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/program/prog_print.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mesa/program/prog_print.c b/src/mesa/program/prog_print.c
index 46f1df0fcd7..bc5dc580367 100644
--- a/src/mesa/program/prog_print.c
+++ b/src/mesa/program/prog_print.c
@@ -29,6 +29,8 @@
* \author Brian Paul
*/
+#include <inttypes.h> /* for PRIx64 macro */
+
#include "main/glheader.h"
#include "main/context.h"
#include "main/imports.h"
@@ -970,11 +972,10 @@ _mesa_fprint_program_parameters(FILE *f,
{
GLuint i;
- fprintf(f, "InputsRead: 0x%llx (0b%s)\n",
- (unsigned long long) prog->InputsRead, binary(prog->InputsRead));
- fprintf(f, "OutputsWritten: 0x%llx (0b%s)\n",
- (unsigned long long)prog->OutputsWritten,
- binary(prog->OutputsWritten));
+ fprintf(f, "InputsRead: %" PRIx64 " (0b%s)\n",
+ (uint64_t) prog->InputsRead, binary(prog->InputsRead));
+ fprintf(f, "OutputsWritten: %" PRIx64 " (0b%s)\n",
+ (uint64_t) prog->OutputsWritten, binary(prog->OutputsWritten));
fprintf(f, "NumInstructions=%d\n", prog->NumInstructions);
fprintf(f, "NumTemporaries=%d\n", prog->NumTemporaries);
fprintf(f, "NumParameters=%d\n", prog->NumParameters);