aboutsummaryrefslogtreecommitdiff
path: root/src/common/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/log.h')
-rw-r--r--src/common/log.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/common/log.h b/src/common/log.h
index e70aa2f5b..7e24ae0a1 100644
--- a/src/common/log.h
+++ b/src/common/log.h
@@ -8,8 +8,11 @@
/*
* Changes :
* $Log$
- * Revision 1.1 2002/06/26 22:45:50 arma
- * Initial revision
+ * Revision 1.2 2003/05/09 02:25:37 nickm
+ * work on versioning; new log_fn function
+ *
+ * Revision 1.1.1.1 2002/06/26 22:45:50 arma
+ * initial commit: current code
*
* Revision 1.5 2002/01/26 18:52:00 mp292
* Reviewed according to Secure-Programs-HOWTO.
@@ -36,5 +39,12 @@
/* Outputs a message to stdout and also logs the same message using syslog. */
void log(int severity, const char *format, ...);
+#ifdef __GNUCC__
+#define log_fn(severity, format, args...) \
+ log((severity), __PRETTY_FUNCTION__ # "(): " # format, ##args)
+#else
+#define log_fn log
+#endif
+
# define __LOG_H
#endif