Some DEBUG fixups

This commit is contained in:
leo 1998-10-06 09:22:01 +00:00
parent e3704a8e0b
commit 8a20859c2e
2 changed files with 9 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.36 1998/10/01 02:53:54 thorpej Exp $ */
/* $NetBSD: trap.c,v 1.37 1998/10/06 09:22:01 leo Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -81,6 +81,10 @@
#include <machine/db_machdep.h>
#endif
#ifdef DEBUG
#include <dev/cons.h> /* cngetc() */
#endif
#ifdef FPU_EMULATE
#include <m68k/fpe/fpu_emulate.h>
#endif
@ -632,7 +636,7 @@ trap(type, code, v, frame)
#endif
#ifdef DEBUG
if (rv && MDB_ISPID(p->p_pid))
printf("vm_fault(%x, %x, %x, 0) -> %x\n",
printf("vm_fault(%p, %lx, %x, 0) -> %x\n",
map, va, ftype, rv);
#endif
/*
@ -1010,7 +1014,7 @@ dumpwb(num, s, a, d)
if (pa == 0)
printf("<invalid address>");
else
printf("%x, current value %x", pa, fuword((caddr_t)a));
printf("%lx, current value %lx", pa, fuword((caddr_t)a));
printf("\n");
}
#endif /* DEBUG */

View File

@ -1,4 +1,4 @@
/* $NetBSD: hdfd.c,v 1.11 1998/07/04 22:18:21 jonathan Exp $ */
/* $NetBSD: hdfd.c,v 1.12 1998/10/06 09:24:05 leo Exp $ */
/*-
* Copyright (c) 1996 Leo Weppelman
@ -1501,7 +1501,7 @@ fdformat(dev, finfo, p)
bp->b_data = (caddr_t)finfo;
#ifdef DEBUG
printf("fdformat: blkno %x count %x\n", bp->b_blkno, bp->b_bcount);
printf("fdformat: blkno %x count %lx\n", bp->b_blkno, bp->b_bcount);
#endif
/* now do the format */