summaryrefslogtreecommitdiff
path: root/vrrpd/vrrp.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-03-07 18:46:02 +0000
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-05-17 00:27:08 +0000
commit613b45b008bd473704b341ce4d8247ddceeba494 (patch)
tree2cd53b18fffbd25cb8bb8a2e45e91dfcf15cc25a /vrrpd/vrrp.h
parentbd0934fa6dd3ea847ab993ef985786f0b52d3b96 (diff)
vrrpd: clean up logging
* Always include address family when available * Log advertisement decodes on one line Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'vrrpd/vrrp.h')
-rw-r--r--vrrpd/vrrp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/vrrpd/vrrp.h b/vrrpd/vrrp.h
index 99cebd5c8a..9513009e70 100644
--- a/vrrpd/vrrp.h
+++ b/vrrpd/vrrp.h
@@ -41,7 +41,8 @@
#define VRRP_MCASTV6_GROUP 0xff020000000000000000000000000012
#define IPPROTO_VRRP 112
-#define VRRP_LOGPFX_VRID "[VRID: %u] "
+#define VRRP_LOGPFX_VRID "[VRID %u] "
+#define VRRP_LOGPFX_FAM "[%s] "
/* Default defaults */
#define VRRP_DEFAULT_PRIORITY 100