]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/log_int.h
zebra, lib: fix the ZEBRA_INTERFACE_VRF_UPDATE zapi message
[mirror_frr.git] / lib / log_int.h
index 7c93381cbc04e5a4b38b94122fddabb02a7a272e..a7f8be9ae71499eb6c67eee2d61091b25e7d6824 100644 (file)
 
 #include "log.h"
 
-struct zlog
-{
-  const char *ident;   /* daemon name (first arg to openlog) */
-  const char *protoname;
-  u_short instance;
-  int maxlvl[ZLOG_NUM_DESTS];   /* maximum priority to send to associated
-                                   logging destination */
-  int default_lvl;      /* maxlvl to use if none is specified */
-  FILE *fp;
-  char *filename;
-  int facility;         /* as per syslog facility */
-  int record_priority;  /* should messages logged through stdio include the
-                           priority of the message? */
-  int syslog_options;   /* 2nd arg to openlog */
-  int timestamp_precision;      /* # of digits of subsecond precision */
+struct zlog {
+       const char *ident; /* daemon name (first arg to openlog) */
+       const char *protoname;
+       unsigned short instance;
+       int maxlvl[ZLOG_NUM_DESTS]; /* maximum priority to send to associated
+                                      logging destination */
+       int default_lvl;            /* maxlvl to use if none is specified */
+       FILE *fp;
+       char *filename;
+       int facility;   /* as per syslog facility */
+       int record_priority; /* should messages logged through stdio include the
+                               priority of the message? */
+       int syslog_options;  /* 2nd arg to openlog */
+       int timestamp_precision; /* # of digits of subsecond precision */
 };
 
 /* Default logging strucutre. */
@@ -47,10 +46,7 @@ extern struct zlog *zlog_default;
 extern const char *zlog_priority[];
 
 /* Generic function for zlog. */
-extern void vzlog (int priority, const char *format, va_list args);
-extern void zlog (int priority, const char *format, ...)
-  PRINTF_ATTRIBUTE(2, 3);
+extern void vzlog(int priority, const char *format, va_list args);
+extern void zlog(int priority, const char *format, ...) PRINTF_ATTRIBUTE(2, 3);
 
 #endif /* _ZEBRA_LOG_PRIVATE_H */
-
-