1 /*-
2 * Copyright (c) 1983, 1985
3 * The Regents of the University of California. All rights reserved.
4 *
5 * %sccs.include.redist.c%
6 */
7
8 #ifndef lint
9 static char sccsid[] = "@(#)print.c 5.1 (Berkeley) 6/6/85";
10 #endif not lint
11
12 /* debug print routines */
13
14 #include <stdio.h>
15 #include "ctl.h"
16
print_request(request)17 print_request(request)
18 CTL_MSG *request;
19 {
20 extern FILE *debugout;
21
22 fprintf(debugout
23 , "type is %d, l_user %s, r_user %s, r_tty %s\n"
24 , request->type, request->l_name, request->r_name
25 , request->r_tty);
26 fprintf(debugout, " id = %d\n", request->id_num);
27 fflush(debugout);
28 }
29
print_response(response)30 print_response(response)
31 CTL_RESPONSE *response;
32 {
33 extern FILE *debugout;
34
35 fprintf(debugout
36 , "type is %d, answer is %d, id = %d\n\n", response->type
37 , response->answer, response->id_num);
38 fflush(debugout);
39 }
40