Avoid compiler warning (printf arg type mismatch) when compiling #ifdef DEBUG

This commit is contained in:
Archie Cobbs 1998-12-06 00:03:30 +00:00
parent c7f682db21
commit 2326715f79
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=41547
3 changed files with 6 additions and 6 deletions

View file

@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)trap.c 7.4 (Berkeley) 5/13/91
* $Id: trap.c,v 1.128 1998/08/23 10:16:26 bde Exp $
* $Id: trap.c,v 1.129 1998/12/02 08:15:16 kato Exp $
*/
/*
@ -593,7 +593,7 @@ trap(frame)
uprintf("fatal process exception: %s",
trap_msg[type]);
if ((type == T_PAGEFLT) || (type == T_PROTFLT))
uprintf(", fault VA = 0x%lx", eva);
uprintf(", fault VA = 0x%lx", (u_long)eva);
uprintf("\n");
}
#endif

View file

@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)trap.c 7.4 (Berkeley) 5/13/91
* $Id: trap.c,v 1.128 1998/08/23 10:16:26 bde Exp $
* $Id: trap.c,v 1.129 1998/12/02 08:15:16 kato Exp $
*/
/*
@ -593,7 +593,7 @@ trap(frame)
uprintf("fatal process exception: %s",
trap_msg[type]);
if ((type == T_PAGEFLT) || (type == T_PROTFLT))
uprintf(", fault VA = 0x%lx", eva);
uprintf(", fault VA = 0x%lx", (u_long)eva);
uprintf("\n");
}
#endif

View file

@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)trap.c 7.4 (Berkeley) 5/13/91
* $Id: trap.c,v 1.128 1998/08/23 10:16:26 bde Exp $
* $Id: trap.c,v 1.129 1998/12/02 08:15:16 kato Exp $
*/
/*
@ -593,7 +593,7 @@ trap(frame)
uprintf("fatal process exception: %s",
trap_msg[type]);
if ((type == T_PAGEFLT) || (type == T_PROTFLT))
uprintf(", fault VA = 0x%lx", eva);
uprintf(", fault VA = 0x%lx", (u_long)eva);
uprintf("\n");
}
#endif