From fca6fa371006186d12a720cd48c270789c67d2e6 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 26 Aug 2009 16:22:26 +0200 Subject: replace comm_layer_inner_debug() with log() everywhere Signed-off-by: Denys Vlasenko --- inc/abrtlib.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'inc') diff --git a/inc/abrtlib.h b/inc/abrtlib.h index 1cac10c0..4f0244e8 100644 --- a/inc/abrtlib.h +++ b/inc/abrtlib.h @@ -72,7 +72,13 @@ extern void simple_perror_msg_and_die(const char *s) NORETURN; extern void perror_nomsg_and_die(void) NORETURN; extern void perror_nomsg(void); extern void verror_msg(const char *s, va_list p, const char *strerr); -/* This is a macro since it collides with log() from math.h */ +/* error_msg() and log() do the same thing: + * they log a message on stderr, syslog, etc. + * They are only semantically different: error_msg() implies that + * the logged event is a warning/error, while log() does not. + * Another reason is that log() is such a short and nice name. :) + * It's a macro, not function, since it collides with log() from math.h + */ #undef log #define log(...) error_msg(__VA_ARGS__) -- cgit