Added paning variable to help routing debug output.

This commit is contained in:
Philip Homburg 2005-10-24 13:47:24 +00:00
parent 6a0a7c1a76
commit 29eed99c71

View File

@ -2,6 +2,8 @@
#include "sysutil.h" #include "sysutil.h"
int panicing= 0;
/*===========================================================================* /*===========================================================================*
* panic * * panic *
*===========================================================================*/ *===========================================================================*/
@ -16,6 +18,8 @@ int num; /* number to go with format string */
*/ */
message m; message m;
void (*suicide)(void); void (*suicide)(void);
panicing= 1;
if (NULL != who && NULL != mess) { if (NULL != who && NULL != mess) {
if (num != NO_NUM) { if (num != NO_NUM) {
printf("Panic in %s: %s: %d\n", who, mess, num); printf("Panic in %s: %s: %d\n", who, mess, num);