drm_proc.c fix compilation warning
authorJaswinder Singh Rajput <jaswinderrajput@gmail.com>
Wed, 11 Feb 2009 18:12:59 +0000 (23:42 +0530)
committerIngo Molnar <mingo@elte.hu>
Wed, 11 Feb 2009 20:01:28 +0000 (21:01 +0100)
 drivers/gpu/drm/drm_proc.c: In function ‘drm__vma_info’:
 drivers/gpu/drm/drm_proc.c:681: warning: format ‘%08lx’ expects type ‘long unsigned int’, but argument 5 has type ‘phys_addr_t’

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
drivers/gpu/drm/drm_proc.c

index 8df849f66830fbd50bc371fb13abf04360afa914..b756f043a5f4d19fbf58b625b95b4d8a6a2b4cae 100644 (file)
@@ -678,9 +678,9 @@ static int drm__vma_info(char *buf, char **start, off_t offset, int request,
        *start = &buf[offset];
        *eof = 0;
 
-       DRM_PROC_PRINT("vma use count: %d, high_memory = %p, 0x%08lx\n",
+       DRM_PROC_PRINT("vma use count: %d, high_memory = %p, 0x%llx\n",
                       atomic_read(&dev->vma_count),
-                      high_memory, virt_to_phys(high_memory));
+                      high_memory, (u64)virt_to_phys(high_memory));
        list_for_each_entry(pt, &dev->vmalist, head) {
                if (!(vma = pt->vma))
                        continue;