diff options
Diffstat (limited to 'screen.c')
-rw-r--r-- | screen.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -2,6 +2,8 @@ #include <stdio.h> #include <stdint.h> +#include <inttypes.h> + #include <nouveau_drm.h> #include <nouveau_drmif.h> #include <nouveau_bo.h> @@ -44,7 +46,7 @@ int screen_open(int width, int height, int bpp) } printf("screen: chipset: 0x%08x\n", dev->chipset); - printf("screen: vm_vram_base: 0x%lx\n", dev->vm_vram_base); + printf("screen: vm_vram_base: 0x%" PRIu64 "\n", dev->vm_vram_base); printf("screen: vm_vram_size: %d MB\n", (int) (dev->vm_vram_size >> 20)); printf("screen: vm_gart_size: %d MB\n", (int) (dev->vm_gart_size >> 20)); |