5d3849597edf85006bd97a17ca045d4cac6791ea
[openafs.git] / src / des / util.c
1 /*
2  * Copyright 1988 by the Massachusetts Institute of Technology.
3  *
4  * For copying and distribution information, please see the file
5  * <mit-cpyright.h>.
6  *
7  * Miscellaneous debug printing utilities
8  */
9
10 #include <afsconfig.h>
11 #include <afs/param.h>
12
13 RCSID
14     ("$Header$");
15
16 #include "mit-cpyright.h"
17 #ifndef KERNEL
18 #include <stdio.h>
19 #endif
20 #include <sys/types.h>
21 #include <des.h>
22 #include "des_prototypes.h"
23 #include "stats.h"
24
25 #ifndef AFS_PTHREAD_ENV 
26 struct rxkad_stats rxkad_stats = { { 0 } }; 
27 #endif
28
29 int
30 des_cblock_print_file(des_cblock * x, FILE * fp)
31 {
32     unsigned char *y = (unsigned char *)x;
33     register int i = 0;
34     fprintf(fp, " 0x { ");
35
36     while (i++ < 8) {
37         fprintf(fp, "%x", *y++);
38         if (i < 8)
39             fprintf(fp, ", ");
40     }
41     fprintf(fp, " }");
42
43     return (0);
44 }
45
46 #ifdef DEBUG
47 int
48 des_debug_print(char *area, int x, char *arg1, char *arg2)
49 {
50     ;
51 }
52 #endif