summaryrefslogtreecommitdiff
path: root/usr.sbin/ldpd/packet.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@cvs.openbsd.org>2016-05-23 16:21:00 +0000
committerRenato Westphal <renato@cvs.openbsd.org>2016-05-23 16:21:00 +0000
commit4f44db979ad33b647bb035c55fff7e4a2c89409c (patch)
treed4b2794ffda8541d9d59ac44db62a5dd38c45f82 /usr.sbin/ldpd/packet.c
parent9b77d13163cce652826e4446edc864a88be2e9e1 (diff)
Standardize some log messages and fix some inconsistencies.
We were using several different names for the same thing in our log messages: neighbor, neighbor ID, nbr ID and LSR ID. Standardize to always use "lsr-id" to refer to a neighbor. Also: * Use log_warnx() instead of log_warn() when appropriate; * Use fatal(x) instead of err(x) when appropriate; * Fix some inconsistent log messages.
Diffstat (limited to 'usr.sbin/ldpd/packet.c')
-rw-r--r--usr.sbin/ldpd/packet.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ldpd/packet.c b/usr.sbin/ldpd/packet.c
index 8c1c04d1ea0..d7f7c17daa7 100644
--- a/usr.sbin/ldpd/packet.c
+++ b/usr.sbin/ldpd/packet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: packet.c,v 1.51 2016/05/23 16:18:51 renato Exp $ */
+/* $OpenBSD: packet.c,v 1.52 2016/05/23 16:20:59 renato Exp $ */
/*
* Copyright (c) 2009 Michele Marchetto <michele@openbsd.org>
@@ -553,7 +553,7 @@ session_shutdown(struct nbr *nbr, u_int32_t status, u_int32_t msgid,
if (nbr->tcp == NULL)
return;
- log_debug("%s: nbr ID %s", __func__, inet_ntoa(nbr->id));
+ log_debug("%s: lsr-id %s", __func__, inet_ntoa(nbr->id));
send_notification_nbr(nbr, status, msgid, type);
@@ -566,7 +566,7 @@ session_shutdown(struct nbr *nbr, u_int32_t status, u_int32_t msgid,
void
session_close(struct nbr *nbr)
{
- log_debug("%s: closing session with nbr ID %s", __func__,
+ log_debug("%s: closing session with lsr-id %s", __func__,
inet_ntoa(nbr->id));
tcp_close(nbr->tcp);