From: greg@kroah.com Date: Mon, 2 Feb 2004 16:22:01 +0000 (-0800) Subject: [PATCH] fix up logging code so that it can be built without it being enabled X-Git-Tag: 016~9 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=62e156af9438bfd6404de3e359a890286cb49479;hp=95a6f4c8acafe7031087667aa556a50a6a091c93;p=elogind.git [PATCH] fix up logging code so that it can be built without it being enabled --- diff --git a/logging.h b/logging.h index e233ddc88..3ee3e1acf 100644 --- a/logging.h +++ b/logging.h @@ -27,6 +27,7 @@ #define info(format, arg...) do { } while (0) #define dbg(format, arg...) do { } while (0) #define dbg_parse(format, arg...) do { } while (0) +#define init_logging(foo) do { } while (0) #ifdef LOG #include @@ -69,6 +70,7 @@ static inline void log_message (int level, const char *format, ...) /* each program must declare this variable somewhere */ extern unsigned char logname[42]; +#undef init_logging static inline void init_logging(char *program_name) { snprintf(logname, 42,"%s[%d]", program_name, getpid());