Some doc path fixes from Anders
[pkg-k5-afs_openafs.git] / src / vol / common.c
blob7af9a6f900143900bbc6c064d3d3c8bbd12ec1f2
1 /*
2 * Copyright 2000, International Business Machines Corporation and others.
3 * All Rights Reserved.
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 */
11 System: VICE-TWO
12 Module: common.c
13 Institution: The Information Technology Center, Carnegie-Mellon University
17 #include <afsconfig.h>
18 #include <afs/param.h>
20 #include <roken.h>
22 #include <afs/afsutil.h>
24 #include "common.h"
26 int Statistics = 0;
28 /*@printflike@*/ void
29 Log(const char *format, ...)
31 int level;
32 va_list args;
34 if (Statistics)
35 level = -1;
36 else
37 level = 0;
39 va_start(args, format);
40 vViceLog(level, (format, args));
41 va_end(args);
44 /*@printflike@*/ void
45 Abort(const char *format, ...)
47 va_list args;
49 ViceLog(0, ("Program aborted: "));
50 va_start(args, format);
51 vViceLog(0, (format, args));
52 va_end(args);
53 abort();
56 /*@printflike@*/ void
57 Quit(const char *format, ...)
59 va_list args;
61 va_start(args, format);
62 vViceLog(0, (format, args));
63 va_end(args);
64 exit(1);