diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2016-10-17 23:36:21 +0000 | 
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2016-10-17 23:36:21 +0000 | 
| commit | e52702f29d003585dcfbb4914b2a52d77a177739 (patch) | |
| tree | 3e130ded38c48316796bfb602dc6fe6d119129d2 /lib/log.h | |
| parent | 6fbde29dafeaf7c6aab9789d3eaf0234e99eefb6 (diff) | |
| parent | 3d3c3cbd115a3c38b490d656002af777d002743c (diff) | |
Merge branch 'cmaster-next' into vtysh-grammar
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Conflicts:
	bgpd/bgp_route.c
	bgpd/bgp_routemap.c
	bgpd/bgp_vty.c
	isisd/isis_redist.c
	isisd/isis_routemap.c
	isisd/isis_vty.c
	isisd/isisd.c
	lib/command.c
	lib/distribute.c
	lib/if.c
	lib/keychain.c
	lib/routemap.c
	lib/routemap.h
	ospf6d/ospf6_asbr.c
	ospf6d/ospf6_interface.c
	ospf6d/ospf6_neighbor.c
	ospf6d/ospf6_top.c
	ospf6d/ospf6_zebra.c
	ospf6d/ospf6d.c
	ospfd/ospf_routemap.c
	ospfd/ospf_vty.c
	ripd/rip_routemap.c
	ripngd/ripng_routemap.c
	vtysh/extract.pl.in
	vtysh/vtysh.c
	zebra/interface.c
	zebra/irdp_interface.c
	zebra/rt_netlink.c
	zebra/rtadv.c
	zebra/test_main.c
	zebra/zebra_routemap.c
	zebra/zebra_vty.c
Diffstat (limited to 'lib/log.h')
| -rw-r--r-- | lib/log.h | 14 | 
1 files changed, 13 insertions, 1 deletions
@@ -41,6 +41,10 @@   * please use LOG_ERR instead.   */ +/* + * This must be kept in the same order as + * zlog_proto_names[] + */  typedef enum   {    ZLOG_NONE, @@ -51,9 +55,10 @@ typedef enum    ZLOG_OSPF,    ZLOG_RIPNG,    ZLOG_OSPF6, +  ZLOG_LDP,    ZLOG_ISIS,    ZLOG_PIM, -  ZLOG_MASC +  ZLOG_RFP,  } zlog_proto_t;  /* If maxlvl is set to ZLOG_DISABLED, then no messages will be sent @@ -115,12 +120,15 @@ extern void zlog (struct zlog *zl, int priority, const char *format, ...)    PRINTF_ATTRIBUTE(3, 4);  /* Handy zlog functions. */ +extern void vzlog (struct zlog *zl, int priority, const char *format, va_list args);  extern void zlog_err (const char *format, ...) PRINTF_ATTRIBUTE(1, 2);  extern void zlog_warn (const char *format, ...) PRINTF_ATTRIBUTE(1, 2);  extern void zlog_info (const char *format, ...) PRINTF_ATTRIBUTE(1, 2);  extern void zlog_notice (const char *format, ...) PRINTF_ATTRIBUTE(1, 2);  extern void zlog_debug (const char *format, ...) PRINTF_ATTRIBUTE(1, 2); +extern void vzlog (struct zlog *, int , const char *, va_list ); +  extern void zlog_thread_info (int log_level);  /* Set logging level for the given destination.  If the log_level @@ -180,6 +188,10 @@ extern size_t quagga_timestamp(int timestamp_precision /* # subsecond digits */,  extern void zlog_hexdump(const void *mem, unsigned int len); + +extern int  +vzlog_test (struct zlog *zl, int priority); +  /* structure useful for avoiding repeated rendering of the same timestamp */  struct timestamp_control {     size_t len;		/* length of rendered timestamp */  | 
