Mesa (master): nouveau: use PRIu64 for printing uint64_t
Christoph Bumiller
chrisbmr at kemper.freedesktop.org
Tue Aug 30 12:52:43 UTC 2011
Module: Mesa
Branch: master
Commit: d49525d0c52601f8c4abec82590ca4ffb896a614
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d49525d0c52601f8c4abec82590ca4ffb896a614
Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date: Tue Aug 30 14:41:13 2011 +0200
nouveau: use PRIu64 for printing uint64_t
---
src/gallium/drivers/nouveau/nouveau_mm.c | 4 +++-
src/gallium/drivers/nouveau/nouveau_winsys.h | 2 ++
src/gallium/drivers/nv50/nv50_screen.c | 2 +-
3 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/nouveau/nouveau_mm.c b/src/gallium/drivers/nouveau/nouveau_mm.c
index 91532d7..2a4e322 100644
--- a/src/gallium/drivers/nouveau/nouveau_mm.c
+++ b/src/gallium/drivers/nouveau/nouveau_mm.c
@@ -1,4 +1,6 @@
+#include <inttypes.h>
+
#include "util/u_inlines.h"
#include "util/u_memory.h"
#include "util/u_double_list.h"
@@ -143,7 +145,7 @@ mm_slab_new(struct nouveau_mman *cache, int chunk_order)
cache->allocated += size;
- debug_printf("MM: new slab, total memory = %llu KiB\n",
+ debug_printf("MM: new slab, total memory = %"PRIu64" KiB\n",
cache->allocated / 1024);
return PIPE_OK;
diff --git a/src/gallium/drivers/nouveau/nouveau_winsys.h b/src/gallium/drivers/nouveau/nouveau_winsys.h
index 553a5e6..524e636 100644
--- a/src/gallium/drivers/nouveau/nouveau_winsys.h
+++ b/src/gallium/drivers/nouveau/nouveau_winsys.h
@@ -2,6 +2,8 @@
#define NOUVEAU_WINSYS_H
#include <stdint.h>
+#include <inttypes.h>
+
#include "pipe/p_defines.h"
#include "nouveau/nouveau_bo.h"
diff --git a/src/gallium/drivers/nv50/nv50_screen.c b/src/gallium/drivers/nv50/nv50_screen.c
index 985a55c..b1d0b1c 100644
--- a/src/gallium/drivers/nv50/nv50_screen.c
+++ b/src/gallium/drivers/nv50/nv50_screen.c
@@ -492,7 +492,7 @@ nv50_screen_create(struct pipe_winsys *ws, struct nouveau_device *dev)
screen->tls_size = tls_space * max_warps * 32;
- debug_printf("max_warps = %i, tls_size = %llu KiB\n",
+ debug_printf("max_warps = %i, tls_size = %"PRIu64" KiB\n",
max_warps, screen->tls_size >> 10);
ret = nouveau_bo_new(dev, NOUVEAU_BO_VRAM, 1 << 16, screen->tls_size,
More information about the mesa-commit
mailing list