linux-cvs-patches
[Top] [All Lists]

CVS Update@linux-mips.org: linux

To: linux-cvs-patches@linux-mips.org
Subject: CVS Update@linux-mips.org: linux
From: ralf@linux-mips.org
Date: Tue, 16 Aug 2005 18:06:55 +0100
Reply-to: linux-mips@linux-mips.org
Sender: linux-cvs-patches-bounce@linux-mips.org
CVSROOT:        /home/cvs
Module name:    linux
Changes by:     ralf@ftp.linux-mips.org 05/08/16 18:06:48

Modified files:
        arch/mips/lib-32: dump_tlb.c 

Log message:
        Feed to the shark...eeeh indent.

diff -urN linux/arch/mips/lib-32/dump_tlb.c linux/arch/mips/lib-32/dump_tlb.c
--- linux/arch/mips/lib-32/dump_tlb.c   2005/02/10 12:19:59     1.4
+++ linux/arch/mips/lib-32/dump_tlb.c   2005/08/16 17:06:48     1.5
@@ -20,16 +20,25 @@
 static inline const char *msk2str(unsigned int mask)
 {
        switch (mask) {
-       case PM_4K:     return "4kb";
-       case PM_16K:    return "16kb";
-       case PM_64K:    return "64kb";
-       case PM_256K:   return "256kb";
+       case PM_4K:
+               return "4kb";
+       case PM_16K:
+               return "16kb";
+       case PM_64K:
+               return "64kb";
+       case PM_256K:
+               return "256kb";
 #ifndef CONFIG_CPU_VR41XX
-       case PM_1M:     return "1Mb";
-       case PM_4M:     return "4Mb";
-       case PM_16M:    return "16Mb";
-       case PM_64M:    return "64Mb";
-       case PM_256M:   return "256Mb";
+       case PM_1M:
+               return "1Mb";
+       case PM_4M:
+               return "4Mb";
+       case PM_16M:
+               return "16Mb";
+       case PM_64M:
+               return "64Mb";
+       case PM_256M:
+               return "256Mb";
 #endif
        }
 }
@@ -45,7 +54,7 @@
        unsigned int pagemask, c0, c1, asid;
        unsigned long long entrylo0, entrylo1;
        unsigned long entryhi;
-       int     i;
+       int i;
 
        asid = read_c0_entryhi() & 0xff;
 
@@ -56,7 +65,7 @@
                tlb_read();
                BARRIER();
                pagemask = read_c0_pagemask();
-               entryhi  = read_c0_entryhi();
+               entryhi = read_c0_entryhi();
                entrylo0 = read_c0_entrylo0();
                entrylo1 = read_c0_entrylo1();
 
@@ -76,13 +85,11 @@
                        printk("\t\t\t[pa=%08Lx c=%d d=%d v=%d g=%Ld]\n",
                               (entrylo0 << 6) & PAGE_MASK, c0,
                               (entrylo0 & 4) ? 1 : 0,
-                              (entrylo0 & 2) ? 1 : 0,
-                              (entrylo0 & 1));
+                              (entrylo0 & 2) ? 1 : 0, (entrylo0 & 1));
                        printk("\t\t\t[pa=%08Lx c=%d d=%d v=%d g=%Ld]\n",
                               (entrylo1 << 6) & PAGE_MASK, c1,
                               (entrylo1 & 4) ? 1 : 0,
-                              (entrylo1 & 2) ? 1 : 0,
-                              (entrylo1 & 1));
+                              (entrylo1 & 2) ? 1 : 0, (entrylo1 & 1));
                        printk("\n");
                }
        }
@@ -97,7 +104,7 @@
 
 void dump_tlb_wired(void)
 {
-       int     wired;
+       int wired;
 
        wired = read_c0_wired();
        printk("Wired: %d", wired);
@@ -136,10 +143,10 @@
 
 void dump_list_process(struct task_struct *t, void *address)
 {
-       pgd_t   *page_dir, *pgd;
-       pud_t   *pud;
-       pmd_t   *pmd;
-       pte_t   *pte, page;
+       pgd_t *page_dir, *pgd;
+       pud_t *pud;
+       pmd_t *pmd;
+       pte_t *pte, page;
        unsigned long addr, val;
 
        addr = (unsigned long) address;
@@ -178,14 +185,22 @@
 #endif
 
        val = pte_val(page);
-       if (val & _PAGE_PRESENT) printk("present ");
-       if (val & _PAGE_READ) printk("read ");
-       if (val & _PAGE_WRITE) printk("write ");
-       if (val & _PAGE_ACCESSED) printk("accessed ");
-       if (val & _PAGE_MODIFIED) printk("modified ");
-       if (val & _PAGE_R4KBUG) printk("r4kbug ");
-       if (val & _PAGE_GLOBAL) printk("global ");
-       if (val & _PAGE_VALID) printk("valid ");
+       if (val & _PAGE_PRESENT)
+               printk("present ");
+       if (val & _PAGE_READ)
+               printk("read ");
+       if (val & _PAGE_WRITE)
+               printk("write ");
+       if (val & _PAGE_ACCESSED)
+               printk("accessed ");
+       if (val & _PAGE_MODIFIED)
+               printk("modified ");
+       if (val & _PAGE_R4KBUG)
+               printk("r4kbug ");
+       if (val & _PAGE_GLOBAL)
+               printk("global ");
+       if (val & _PAGE_VALID)
+               printk("valid ");
        printk("\n");
 }
 
@@ -196,10 +211,10 @@
 
 unsigned int vtop(void *address)
 {
-       pgd_t   *pgd;
-       pud_t   *pud;
-       pmd_t   *pmd;
-       pte_t   *pte;
+       pgd_t *pgd;
+       pud_t *pud;
+       pmd_t *pmd;
+       pte_t *pte;
        unsigned int addr, paddr;
 
        addr = (unsigned long) address;
@@ -218,9 +233,9 @@
        int i;
 
        for (i = 0; i < 8; i++) {
-               printk("*%08lx == %08lx, ", (unsigned long)p, *p);
+               printk("*%08lx == %08lx, ", (unsigned long) p, *p);
                p++;
-               printk("*%08lx == %08lx\n", (unsigned long)p, *p);
+               printk("*%08lx == %08lx\n", (unsigned long) p, *p);
                p++;
        }
 }

<Prev in Thread] Current Thread [Next in Thread>