]> git.hungrycats.org Git - linux/commitdiff
[PROC]: Printf field widths must be of type int, fix this in task_mmu.c.
authorDavid S. Miller <davem@nuts.ninka.net>
Thu, 19 Jun 2003 09:57:51 +0000 (02:57 -0700)
committerDavid S. Miller <davem@nuts.ninka.net>
Thu, 19 Jun 2003 09:57:51 +0000 (02:57 -0700)
fs/proc/task_mmu.c

index a9d6f99c1869b212ced192372c8b9ec0646b0b6a..3d7d759c63dab253b1fcf6414ec91b9c1880927d 100644 (file)
@@ -91,13 +91,13 @@ static int show_map(struct seq_file *m, void *v)
        }
 
        seq_printf(m, "%0*lx-%0*lx %c%c%c%c %0*lx %02x:%02x %lu %n",
-                       2*sizeof(void*), map->vm_start,
-                       2*sizeof(void*), map->vm_end,
+                       (int) (2*sizeof(void*)), map->vm_start,
+                       (int) (2*sizeof(void*)), map->vm_end,
                        flags & VM_READ ? 'r' : '-',
                        flags & VM_WRITE ? 'w' : '-',
                        flags & VM_EXEC ? 'x' : '-',
                        flags & VM_MAYSHARE ? 's' : 'p',
-                       2*sizeof(void*), map->vm_pgoff << PAGE_SHIFT,
+                       (int) (2*sizeof(void*)), map->vm_pgoff << PAGE_SHIFT,
                        MAJOR(dev), MINOR(dev), ino, &len);
 
        if (map->vm_file) {