Mesa (master): nvc0: use PRIxPTR for sizeof()
Ilia Mirkin
imirkin at kemper.freedesktop.org
Fri May 23 17:13:12 UTC 2014
Module: Mesa
Branch: master
Commit: 2595682689216ee4273ed14232993befcd559d66
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2595682689216ee4273ed14232993befcd559d66
Author: Christoph Bumiller <christoph.bumiller at speed.at>
Date: Fri May 31 15:08:32 2013 +0200
nvc0: use PRIxPTR for sizeof()
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
src/gallium/drivers/nouveau/nvc0/nvc0_program.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_program.c b/src/gallium/drivers/nouveau/nvc0/nvc0_program.c
index 1d59fc4..8724cc5 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_program.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_program.c
@@ -512,7 +512,7 @@ nvc0_program_dump(struct nvc0_program *prog)
if (prog->type != PIPE_SHADER_COMPUTE) {
for (pos = 0; pos < sizeof(prog->hdr) / sizeof(prog->hdr[0]); ++pos)
- debug_printf("HDR[%02lx] = 0x%08x\n",
+ debug_printf("HDR[%02"PRIxPTR"] = 0x%08x\n",
pos * sizeof(prog->hdr[0]), prog->hdr[pos]);
}
debug_printf("shader binary code (0x%x bytes):", prog->code_size);
More information about the mesa-commit
mailing list