diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2000-02-25 17:23:43 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2000-02-25 17:23:43 +0000 |
commit | 21910ef24718f8005826a8363b6fa6aea6cca145 (patch) | |
tree | 54ded622fa65f31f93fbcbd04d876345c6a13682 /sbin/isakmpd/log.h | |
parent | 47167191f09ba0d3c55764f63f6be1d9bcb1aa4b (diff) |
regress/crypto/Makefile: Merge with EOM 1.5
regress/dh/Makefile: Merge with EOM 1.7
regress/group/Makefile: Merge with EOM 1.9
regress/prf/Makefile: Merge with EOM 1.4
regress/rsakeygen/Makefile: Merge with EOM 1.8
regress/x509/Makefile: Merge with EOM 1.10
Makefile: Merge with EOM 1.62
attribute.c: Merge with EOM 1.10
sa.c: Merge with EOM 1.99
conf.c: Merge with EOM 1.20
crypto.c: Merge with EOM 1.28
isakmpd.c: Merge with EOM 1.45
connection.c: Merge with EOM 1.19
doi.h: Merge with EOM 1.28
field.c: Merge with EOM 1.11
exchange.c: Merge with EOM 1.116
ike_auth.c: Merge with EOM 1.44
pf_key_v2.c: Merge with EOM 1.37
ike_phase_1.c: Merge with EOM 1.22
ipsec.c: Merge with EOM 1.118
isakmp_doi.c: Merge with EOM 1.40
log.c: Merge with EOM 1.26
log.h: Merge with EOM 1.18
math_group.c: Merge with EOM 1.23
message.c: Merge with EOM 1.144
pf_encap.c: Merge with EOM 1.70
policy.c: Merge with EOM 1.18
timer.c: Merge with EOM 1.13
transport.c: Merge with EOM 1.41
udp.c: Merge with EOM 1.47
ui.c: Merge with EOM 1.37
x509.c: Merge with EOM 1.36
author: niklas
Made debug logging a compile time selectable feature
Diffstat (limited to 'sbin/isakmpd/log.h')
-rw-r--r-- | sbin/isakmpd/log.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/sbin/isakmpd/log.h b/sbin/isakmpd/log.h index 6b564139093..eea40ad1b87 100644 --- a/sbin/isakmpd/log.h +++ b/sbin/isakmpd/log.h @@ -1,5 +1,5 @@ -/* $OpenBSD: log.h,v 1.6 1999/04/19 21:06:51 niklas Exp $ */ -/* $EOM: log.h,v 1.17 1999/04/16 17:33:08 ho Exp $ */ +/* $OpenBSD: log.h,v 1.7 2000/02/25 17:23:41 niklas Exp $ */ +/* $EOM: log.h,v 1.18 2000/02/20 19:58:40 niklas Exp $ */ /* * Copyright (c) 1998, 1999 Niklas Hallqvist. All rights reserved. @@ -60,10 +60,23 @@ enum log_classes { #define LOG_PRINT -1 #define LOG_REPORT -2 -extern FILE *log_current (void); +#ifdef USE_DEBUG + +#define LOG_DBG(x) log_debug x +#define LOG_DBG_BUF(x) log_debug_buf x + extern void log_debug (int, int, const char *, ...); extern void log_debug_buf (int, int, const char *, const u_int8_t *, size_t); extern void log_debug_cmd (int, int); + +#else /* USE_DEBUG */ + +#define LOG_DBG(x) +#define LOG_DBG_BUF(x) + +#endif /* USE_DEBUG */ + +extern FILE *log_current (void); extern void log_error (const char *, ...); extern void log_fatal (const char *, ...); extern void log_print (const char *, ...); |