1 #ifndef lint 2 static char sccsid[] = "@(#)print.c 1.2 (Berkeley) 04/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 14 printf("type is %d, l_user %s, r_user %s, r_tty %s\n", 15 request->type, request->l_name, request->r_name, 16 request->r_tty); 17 printf(" id = %d\n", request->id_num); 18 fflush(stdout); 19 } 20 21 print_response(response) 22 CTL_RESPONSE *response; 23 { 24 printf("type is %d, answer is %d, id = %d\n\n", response->type, 25 response->answer, response->id_num); 26 fflush(stdout); 27 } 28