]> err.no Git - systemd/commitdiff
[PATCH] fix up logging code so that it can be built without it being enabled
authorgreg@kroah.com <greg@kroah.com>
Mon, 2 Feb 2004 16:22:01 +0000 (08:22 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:13:20 +0000 (21:13 -0700)
logging.h

index e233ddc88972b59ff6906fc4eded9a069bb02f65..3ee3e1acf05967a03540dbe07ca5e9089e29c0ce 100644 (file)
--- 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 <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());