Mesa (master): gallium/nouveau: fix printf warnings

Marek Olšák mareko at kemper.freedesktop.org
Wed Apr 27 11:17:53 UTC 2011


Module: Mesa
Branch: master
Commit: 7e5953fca219ae472f3a933fc93c9e6bb61f7a49
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7e5953fca219ae472f3a933fc93c9e6bb61f7a49

Author: Marek Olšák <maraeo at gmail.com>
Date:   Wed Apr 27 13:08:25 2011 +0200

gallium/nouveau: fix printf warnings

---

 src/gallium/drivers/nouveau/nouveau_mm.c |    2 +-
 src/gallium/drivers/nv50/nv50_screen.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/nouveau/nouveau_mm.c b/src/gallium/drivers/nouveau/nouveau_mm.c
index 7edeb4d..6c6d28c 100644
--- a/src/gallium/drivers/nouveau/nouveau_mm.c
+++ b/src/gallium/drivers/nouveau/nouveau_mm.c
@@ -143,7 +143,7 @@ mm_slab_new(struct nouveau_mman *cache, int chunk_order)
 
    cache->allocated += size;
 
-   debug_printf("MM: new slab, total memory = %lu KiB\n",
+   debug_printf("MM: new slab, total memory = %llu KiB\n",
                 cache->allocated / 1024);
 
    return PIPE_OK;
diff --git a/src/gallium/drivers/nv50/nv50_screen.c b/src/gallium/drivers/nv50/nv50_screen.c
index 641ad7e..a2f13e3 100644
--- a/src/gallium/drivers/nv50/nv50_screen.c
+++ b/src/gallium/drivers/nv50/nv50_screen.c
@@ -469,7 +469,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 = %lu KiB\n",
+   debug_printf("max_warps = %i, tls_size = %llu 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