1171169Smlaier/*
2171169Smlaier * Copyright (c) 2000-2004 Niels Provos <provos@citi.umich.edu>
3171169Smlaier * All rights reserved.
4171169Smlaier *
5171169Smlaier * Redistribution and use in source and binary forms, with or without
6171169Smlaier * modification, are permitted provided that the following conditions
7171169Smlaier * are met:
8171169Smlaier * 1. Redistributions of source code must retain the above copyright
9171169Smlaier *    notice, this list of conditions and the following disclaimer.
10171169Smlaier * 2. Redistributions in binary form must reproduce the above copyright
11171169Smlaier *    notice, this list of conditions and the following disclaimer in the
12171169Smlaier *    documentation and/or other materials provided with the distribution.
13171169Smlaier * 3. The name of the author may not be used to endorse or promote products
14171169Smlaier *    derived from this software without specific prior written permission.
15171169Smlaier *
16171169Smlaier * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17171169Smlaier * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18171169Smlaier * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19171169Smlaier * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20171169Smlaier * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21171169Smlaier * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22171169Smlaier * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23171169Smlaier * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24171169Smlaier * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25171169Smlaier * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26171169Smlaier */
27171169Smlaier#ifndef _LOG_H_
28171169Smlaier#define _LOG_H_
29171169Smlaier
30171169Smlaiervoid event_err(int eval, const char *fmt, ...);
31171169Smlaiervoid event_warn(const char *fmt, ...);
32171169Smlaiervoid event_errx(int eval, const char *fmt, ...);
33171169Smlaiervoid event_warnx(const char *fmt, ...);
34171169Smlaiervoid event_msgx(const char *fmt, ...);
35171169Smlaiervoid _event_debugx(const char *fmt, ...);
36171169Smlaier
37171169Smlaier#ifdef USE_DEBUG
38171169Smlaier#define event_debug(x) _event_debugx x
39171169Smlaier#else
40171169Smlaier#define event_debug(x) do {;} while (0)
41171169Smlaier#endif
42171169Smlaier
43171169Smlaier#endif
44