Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sun3/sun3 style cleanup.



details:   https://anonhg.NetBSD.org/src/rev/a81720446551
branches:  trunk
changeset: 510427:a81720446551
user:      chs <chs%NetBSD.org@localhost>
date:      Mon May 28 22:00:12 2001 +0000

description:
style cleanup.

diffstat:

 sys/arch/sun3/sun3/db_machdep.c |  21 ++++++++++++---------
 1 files changed, 12 insertions(+), 9 deletions(-)

diffs (62 lines):

diff -r f1baae06a5cf -r a81720446551 sys/arch/sun3/sun3/db_machdep.c
--- a/sys/arch/sun3/sun3/db_machdep.c   Mon May 28 21:54:26 2001 +0000
+++ b/sys/arch/sun3/sun3/db_machdep.c   Mon May 28 22:00:12 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_machdep.c,v 1.16 2001/01/22 13:56:59 jdolecek Exp $ */
+/*     $NetBSD: db_machdep.c,v 1.17 2001/05/28 22:00:12 chs Exp $      */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
        { "halt",       db_mach_halt,   0,      0 },
        { "pgmap",      db_mach_pagemap,        CS_SET_DOT, 0 },
        { "reboot",     db_mach_reboot, 0,      0 },
-       { (char *)0, }
+       { NULL }
 };
 
 /*
@@ -122,8 +122,11 @@
        int sme;
 
        sme = get_segmap(va);
-       if (sme == 0xFF) pte = 0;
-       else pte = get_pte(va);
+       if (sme == 0xFF) {
+               pte = 0;
+       } else {
+               pte = get_pte(va);
+       }
        db_printf("0x%08lx [%02x] 0x%08x", va, sme, pte);
 #endif /* SUN3 */
 #ifdef _SUN3X_
@@ -141,7 +144,7 @@
        int pte;
 {
        int t;
-       static char *pgt_names[] = {
+       static const char *pgt_names[] = {
                "MEM", "OBIO", "VMES", "VMEL",
        };
 
@@ -161,8 +164,8 @@
                t = (pte >> PG_TYPE_SHIFT) & 3;
                db_printf(" %s", pgt_names[t]);
                db_printf(" PA=0x%x\n", PG_PA(pte));
-       }
-       else db_printf(" INVALID\n");
+       } else
+               db_printf(" INVALID\n");
 }
 #endif /* SUN3 */
 
@@ -182,7 +185,7 @@
                if (pte & MMU_SHORT_PTE_WP)
                        db_printf(" WP");
                db_printf(" DT%d\n", pte & MMU_SHORT_PTE_DT);
-       }
-       else db_printf(" INVALID\n");
+       } else
+               db_printf(" INVALID\n");
 }
 #endif /* SUN3X */



Home | Main Index | Thread Index | Old Index