names. All system processes can now either use panic() or report() from libutils, or redefine their own function. Assertions are done via the standard <assert.h> functionality.
20 lines
544 B
C
20 lines
544 B
C
#include "utils.h"
|
|
|
|
/*===========================================================================*
|
|
* report *
|
|
*===========================================================================*/
|
|
PUBLIC void report(who, mess, num)
|
|
char *who; /* server identification */
|
|
char *mess; /* message format to print */
|
|
int num; /* number to go with the message */
|
|
{
|
|
/* Display a message for a server. */
|
|
|
|
if (num != NO_NUM) {
|
|
printf("%s: %s %d\n", who, mess, num);
|
|
} else {
|
|
printf("%s: %s\n", who, mess);
|
|
}
|
|
}
|
|
|
|
|