summaryrefslogtreecommitdiffstats
path: root/sys/dev/fb
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-11-08 20:59:23 +0000
committerjhb <jhb@FreeBSD.org>2002-11-08 20:59:23 +0000
commit7dbfeb6da19e3f5078537b0bf4984cbca3734174 (patch)
tree8cb221e2964401b266a32d7cfa0dd082b01e0cf6 /sys/dev/fb
parent40fae53b3bdc0b47839deab7dfb22c01702ea6f4 (diff)
downloadFreeBSD-src-7dbfeb6da19e3f5078537b0bf4984cbca3734174.zip
FreeBSD-src-7dbfeb6da19e3f5078537b0bf4984cbca3734174.tar.gz
Fix printf warnings with %j and uintmax_t.
Diffstat (limited to 'sys/dev/fb')
-rw-r--r--sys/dev/fb/vga.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/fb/vga.c b/sys/dev/fb/vga.c
index f6aab6e..56e015b 100644
--- a/sys/dev/fb/vga.c
+++ b/sys/dev/fb/vga.c
@@ -40,6 +40,7 @@
#include <sys/fcntl.h>
#include <sys/malloc.h>
#include <sys/fbio.h>
+#include <sys/stdint.h>
#include <vm/vm.h>
#include <vm/vm_param.h>
@@ -2454,8 +2455,8 @@ vga_mmap_buf(video_adapter_t *adp, vm_offset_t offset, int prot)
return -1;
#if VGA_DEBUG > 0
- printf("vga_mmap_buf(): window:0x%x, offset:0x%x\n",
- adp->va_info.vi_window, offset);
+ printf("vga_mmap_buf(): window:0x%jx, offset:0x%jx\n",
+ (uintmax_t)adp->va_info.vi_window, (uintmax_t)offset);
#endif
/* XXX: is this correct? */
OpenPOWER on IntegriCloud