]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/log_int.h
sharpd: Allow sharpd to accept nexthop group as part of route install
[mirror_frr.git] / lib / log_int.h
index c21d723ac6d95f8112d229158d15f7e94a36dbb5..a7f8be9ae71499eb6c67eee2d61091b25e7d6824 100644 (file)
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  * General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License
- * along with GNU Zebra; see the file COPYING.  If not, write to the Free
- * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- * 02111-1307, USA.
+ * You should have received a copy of the GNU General Public License along
+ * with this program; see the file COPYING; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
 #ifndef _ZEBRA_LOG_PRIVATE_H
 
 #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. */
@@ -48,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 */
-
-