misc-build-cleanup-20010917
[openafs.git] / src / volser / 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 #include <afsconfig.h>
11 #include <afs/param.h>
12
13 RCSID("$Header$");
14
15 #include <stdio.h>
16 #include <afs/afsutil.h>
17 #include <afs/com_err.h>
18
19 Log(a,b,c,d,e,f)
20 char *a, *b, *c, *d, *e, *f; 
21 {
22         ViceLog(0, (a, b,c, d, e, f)); 
23 }
24
25 LogError(errcode)
26 afs_int32 errcode;
27 {
28     ViceLog(0, ("%s: %s\n", error_table_name(errcode),error_message(errcode)));
29 }
30
31 Abort(s,a,b,c,d,e,f,g,h,i,j) 
32 char *s;
33 {
34     ViceLog(0, ("Program aborted: "));
35     ViceLog(0, (s,a,b,c,d,e,f,g,h,i,j));
36     abort();
37 }
38
39 void
40 InitErrTabs()
41 {
42     initialize_ka_error_table();
43     initialize_rxk_error_table();
44     initialize_ktc_error_table();
45     initialize_acfg_error_table();
46     initialize_cmd_error_table();
47     initialize_vl_error_table();
48     initialize_vols_error_table();
49     return;
50 }