style cleanup.

This commit is contained in:
chs 2001-05-28 22:00:12 +00:00
parent e49a700498
commit 8c221ed505
1 changed files with 12 additions and 9 deletions

View File

@ -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 @@ const struct db_command db_machine_command_table[] = {
{ "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 @@ db_mach_pagemap(addr, have_addr, count, modif)
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 @@ pte_print(pte)
int pte;
{
int t;
static char *pgt_names[] = {
static const char *pgt_names[] = {
"MEM", "OBIO", "VMES", "VMEL",
};
@ -161,8 +164,8 @@ pte_print(pte)
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 @@ pte_print(pte)
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 */