Fix the debug build.
authorEric Anholt <anholt@freebsd.org>
Tue, 19 Aug 2003 02:22:57 +0000 (02:22 +0000)
committerEric Anholt <anholt@freebsd.org>
Tue, 19 Aug 2003 02:22:57 +0000 (02:22 +0000)
bsd-core/drm_bufs.c
bsd/drm_bufs.h

index 645698c..d718edd 100644 (file)
@@ -546,7 +546,7 @@ static int DRM(addbufs_pci)(drm_device_t *dev, drm_buf_desc_t *request)
                for ( i = 0 ; i < (1 << page_order) ; i++ ) {
                        DRM_DEBUG( "page %d @ 0x%08lx\n",
                                   dma->page_count + page_count,
-                                  page + PAGE_SIZE * i );
+                                  (long)vaddr + PAGE_SIZE * i );
                        temp_pagelist[dma->page_count + page_count++] = 
                            vaddr + PAGE_SIZE * i;
                }
index 645698c..d718edd 100644 (file)
@@ -546,7 +546,7 @@ static int DRM(addbufs_pci)(drm_device_t *dev, drm_buf_desc_t *request)
                for ( i = 0 ; i < (1 << page_order) ; i++ ) {
                        DRM_DEBUG( "page %d @ 0x%08lx\n",
                                   dma->page_count + page_count,
-                                  page + PAGE_SIZE * i );
+                                  (long)vaddr + PAGE_SIZE * i );
                        temp_pagelist[dma->page_count + page_count++] = 
                            vaddr + PAGE_SIZE * i;
                }