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