1 #ifndef lint 2 static char sccsid[] = "@(#)print.c 1.2 (Berkeley) 4/11/84"; 3 #endif 4 5 /* debug print routines */ 6 7 #include <stdio.h> 8 #include "ctl.h" 9 10 print_request(request) 11 CTL_MSG *request; 12 { 13 extern FILE *debugout; 14 15 fprintf(debugout 16 , "type is %d, l_user %s, r_user %s, r_tty %s\n" 17 , request->type, request->l_name, request->r_name 18 , request->r_tty); 19 fprintf(debugout, " id = %d\n", request->id_num); 20 fflush(debugout); 21 } 22 23 print_response(response) 24 CTL_RESPONSE *response; 25 { 26 extern FILE *debugout; 27 28 printf(debugout 29 , "type is %d, answer is %d, id = %d\n\n", response->type 30 , response->answer, response->id_num); 31 fflush(debugout); 32 } 33