From 4f44db979ad33b647bb035c55fff7e4a2c89409c Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Mon, 23 May 2016 16:21:00 +0000 Subject: 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. --- usr.sbin/ldpd/interface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/ldpd/interface.c') 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 @@ -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; -- cgit v1.2.3