]> arthur.barton.de Git - netatalk.git/commitdiff
more descriptive name fors LOG macro parameters and missing void in log_close functio...
authordidg <didg>
Mon, 19 Oct 2009 10:33:14 +0000 (10:33 +0000)
committerdidg <didg>
Mon, 19 Oct 2009 10:33:14 +0000 (10:33 +0000)
include/atalk/logger.h

index abe7f96c965e58e18f4f4dd36198c5f2d7325584..d71185a52d20b78f28a482beacea0bdc99f54a38 100644 (file)
@@ -208,7 +208,7 @@ void setuplog(const char *logstr);
 void unsetuplog(const char *logstr);
 
 /* finish up and close the logs */
-void log_close();
+void log_close(void);
 
 /* This function sets up the ProcessName */
 void set_processname(const char *processname);
@@ -236,15 +236,15 @@ void make_syslog_entry(enum loglevels loglevel, enum logtypes logtype, char *mes
    any configured file-logging deactivates syslog logging
  */
 
-#define LOG(a,b, ...)  \
+#define LOG(level, type, ...)  \
   do { \
     if ( ! log_config.inited) \
       log_init(); \
-    if (file_configs[b].level >= a) \
+    if (file_configs[(type)].level >= (level)) \
       log_src_filename = __FILE__, \
       log_src_linenumber = __LINE__, \
-      make_log_entry(a, b, __VA_ARGS__); \
-    else if (( ! log_config.filelogging) && (log_config.syslog_level >= a)) \
-       make_syslog_entry(a, b, __VA_ARGS__); \
+      make_log_entry((level), (type), __VA_ARGS__); \
+    else if (( ! log_config.filelogging) && (log_config.syslog_level >= (level))) \
+       make_syslog_entry((level), (type), __VA_ARGS__); \
   } while(0)  
 #endif /* _ATALK_LOGGER_H */