afsconfig-and-rcsid-all-around-20010705
[openafs.git] / src / vol / common.c
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  * 
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 /*
11         System:         VICE-TWO
12         Module:         common.c
13         Institution:    The Information Technology Center, Carnegie-Mellon University
14
15  */
16
17 #include <sys/types.h>
18 #include <stdio.h>
19 #include <afs/param.h>
20 #include <afsconfig.h>
21
22 RCSID("$Header$");
23
24 #include <afs/afsutil.h>
25
26 int Statistics = 0;
27
28 /* VARARGS */
29 Log (a,b,c,d,e,f,g,h,i,j,k)
30     char *a, *b, *c, *d, *e, *f, *g, *h, *i, *j, *k;
31 {
32     int level;
33
34     if (Statistics)
35         level = -1;
36     else
37         level = 0;
38     ViceLog(level,(a,b,c,d,e,f,g,h,i,j,k));
39 }
40
41 Abort(s,a,b,c,d,e,f,g,h,i,j) 
42     char *s, *a, *b, *c, *d, *e, *f, *g, *h, *i, *j;
43 {
44     ViceLog(0, ("Program aborted: "));
45     ViceLog(0, (s,a,b,c,d,e,f,g,h,i,j));
46     abort();
47 }
48
49 Quit(s,a,b,c,d,e,f,g,h,i,j) 
50     char *s, *a, *b, *c, *d, *e, *f, *g, *h, *i, *j;
51 {
52     ViceLog(0, (s,a,b,c,d,e,f,g,h,i,j));
53     exit(1);
54 }