diff options
author | Renato Westphal <renato@cvs.openbsd.org> | 2016-05-23 16:21:00 +0000 |
---|---|---|
committer | Renato Westphal <renato@cvs.openbsd.org> | 2016-05-23 16:21:00 +0000 |
commit | 4f44db979ad33b647bb035c55fff7e4a2c89409c (patch) | |
tree | d4b2794ffda8541d9d59ac44db62a5dd38c45f82 /usr.sbin/ldpd/interface.c | |
parent | 9b77d13163cce652826e4446edc864a88be2e9e1 (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/interface.c')
-rw-r--r-- | usr.sbin/ldpd/interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ldpd/interface.c b/usr.sbin/ldpd/interface.c index 82a44c244a3..38d80f2b913 100644 --- a/usr.sbin/ldpd/interface.c +++ b/usr.sbin/ldpd/interface.c @@ -1,4 +1,4 @@ -/* $OpenBSD: interface.c,v 1.31 2016/05/23 16:14:36 renato Exp $ */ +/* $OpenBSD: interface.c,v 1.32 2016/05/23 16:20:59 renato Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -51,7 +51,7 @@ if_new(struct kif *kif) struct iface *iface; if ((iface = calloc(1, sizeof(*iface))) == NULL) - err(1, "if_new: calloc"); + fatal("if_new: calloc"); iface->state = IF_STA_DOWN; |