rxkad-stats-do-it-right-20050618
[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
24 int
25 des_cblock_print_file(des_cblock * x, FILE * fp)
26 {
27     unsigned char *y = (unsigned char *)x;
28     register int i = 0;
29     fprintf(fp, " 0x { ");
30
31     while (i++ < 8) {
32         fprintf(fp, "%x", *y++);
33         if (i < 8)
34             fprintf(fp, ", ");
35     }
36     fprintf(fp, " }");
37
38     return (0);
39 }
40
41 #ifdef DEBUG
42 int
43 des_debug_print(char *area, int x, char *arg1, char *arg2)
44 {
45     ;
46 }
47 #endif