diff options
author | Marek Olšák <[email protected]> | 2012-10-09 14:38:43 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-10-09 14:38:43 +0200 |
commit | 30ebc8650caa8f67deebaae397a04dfdfc50d1df (patch) | |
tree | cdef0a44edb45d55732fb5528970d38274853c2a /src/gallium/drivers/nv50 | |
parent | 51872e8bb3a83a6eaa7f3bdc621372fa88efaaf2 (diff) |
nv50: fix printf warning
Diffstat (limited to 'src/gallium/drivers/nv50')
-rw-r--r-- | src/gallium/drivers/nv50/codegen/nv50_ir_print.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_print.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_print.cpp index daa0ec697fb..4c522ee479b 100644 --- a/src/gallium/drivers/nv50/codegen/nv50_ir_print.cpp +++ b/src/gallium/drivers/nv50/codegen/nv50_ir_print.cpp @@ -22,6 +22,7 @@ #include "nv50_ir.h" #include "nv50_ir_target.h" +#include <inttypes.h> namespace nv50_ir { @@ -391,7 +392,7 @@ int ImmediateValue::print(char *buf, size_t size, DataType ty) const case TYPE_U64: case TYPE_S64: default: - PRINT("0x%016lx", reg.data.u64); + PRINT("0x%016"PRIx64, reg.data.u64); break; } return pos; |