diff options
author | greg@kroah.com <greg@kroah.com> | 2004-02-02 08:22:01 -0800 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:13:20 -0700 |
commit | 62e156af9438bfd6404de3e359a890286cb49479 (patch) | |
tree | 4c73b03be6ea13ae31e4465a46eaba3ea2024fe2 /logging.h | |
parent | 95a6f4c8acafe7031087667aa556a50a6a091c93 (diff) | |
download | systemd-62e156af9438bfd6404de3e359a890286cb49479.tar.gz |
[PATCH] fix up logging code so that it can be built without it being enabled
Diffstat (limited to 'logging.h')
-rw-r--r-- | logging.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 <stdarg.h> @@ -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()); |