diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-08-26 16:22:26 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-08-26 16:22:26 +0200 |
commit | fca6fa371006186d12a720cd48c270789c67d2e6 (patch) | |
tree | bb17aaf2e00132d41263aac0fee6481d754800dd /inc | |
parent | 556a4b3df4f116965e8dc46c08ac5e720834022e (diff) | |
download | abrt-fca6fa371006186d12a720cd48c270789c67d2e6.tar.gz abrt-fca6fa371006186d12a720cd48c270789c67d2e6.tar.xz abrt-fca6fa371006186d12a720cd48c270789c67d2e6.zip |
replace comm_layer_inner_debug() with log() everywhere
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'inc')
-rw-r--r-- | inc/abrtlib.h | 8 |
1 files changed, 7 insertions, 1 deletions
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__) |