1317017Sdim/*
2317017Sdim * Copyright (c) 2000-2004 Niels Provos <provos@citi.umich.edu>
3353358Sdim * All rights reserved.
4353358Sdim *
5353358Sdim * Redistribution and use in source and binary forms, with or without
6317017Sdim * modification, are permitted provided that the following conditions
7317017Sdim * are met:
8317017Sdim * 1. Redistributions of source code must retain the above copyright
9317017Sdim *    notice, this list of conditions and the following disclaimer.
10317017Sdim * 2. Redistributions in binary form must reproduce the above copyright
11317017Sdim *    notice, this list of conditions and the following disclaimer in the
12317017Sdim *    documentation and/or other materials provided with the distribution.
13317017Sdim * 3. The name of the author may not be used to endorse or promote products
14317017Sdim *    derived from this software without specific prior written permission.
15317017Sdim *
16317017Sdim * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17317017Sdim * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18317017Sdim * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19317017Sdim * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20317017Sdim * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21317017Sdim * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22317017Sdim * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23317017Sdim * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24317017Sdim * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25317017Sdim * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26317017Sdim */
27317017Sdim#ifndef _LOG_H_
28317017Sdim#define _LOG_H_
29317017Sdim
30317017Sdimvoid event_err(int eval, const char *fmt, ...);
31317017Sdimvoid event_warn(const char *fmt, ...);
32317017Sdimvoid event_errx(int eval, const char *fmt, ...);
33317017Sdimvoid event_warnx(const char *fmt, ...);
34317017Sdimvoid event_msgx(const char *fmt, ...);
35317017Sdimvoid _event_debugx(const char *fmt, ...);
36317017Sdim
37317017Sdim#ifdef USE_DEBUG
38317017Sdim#define event_debug(x) _event_debugx x
39317017Sdim#else
40317017Sdim#define event_debug(x) do {;} while (0)
41317017Sdim#endif
42317017Sdim
43317017Sdim#endif
44317017Sdim