From d57a14b1bc6f5b1448ed9cec329e48dbfeeffab2 Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Sat, 18 Jun 2016 01:30:29 +0000 Subject: Use log_warnx() instead of log_warn() when appropriate. --- usr.sbin/ldpd/ldpd.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/ldpd/ldpd.c b/usr.sbin/ldpd/ldpd.c index faf128bdae0..15cdf4994c3 100644 --- a/usr.sbin/ldpd/ldpd.c +++ b/usr.sbin/ldpd/ldpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ldpd.c,v 1.52 2016/06/13 20:15:58 renato Exp $ */ +/* $OpenBSD: ldpd.c,v 1.53 2016/06/18 01:30:28 renato Exp $ */ /* * Copyright (c) 2013, 2016 Renato Westphal @@ -496,21 +496,21 @@ main_dispatch_lde(int fd, short event, void *bula) sizeof(struct kroute)) fatalx("invalid size of IMSG_KLABEL_CHANGE"); if (kr_change(imsg.data)) - log_warn("%s: error changing route", __func__); + log_warnx("%s: error changing route", __func__); break; case IMSG_KLABEL_DELETE: if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(struct kroute)) fatalx("invalid size of IMSG_KLABEL_DELETE"); if (kr_delete(imsg.data)) - log_warn("%s: error deleting route", __func__); + log_warnx("%s: error deleting route", __func__); break; case IMSG_KPWLABEL_CHANGE: if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(struct kpw)) fatalx("invalid size of IMSG_KPWLABEL_CHANGE"); if (kmpw_set(imsg.data)) - log_warn("%s: error changing pseudowire", + log_warnx("%s: error changing pseudowire", __func__); break; case IMSG_KPWLABEL_DELETE: @@ -518,7 +518,7 @@ main_dispatch_lde(int fd, short event, void *bula) sizeof(struct kpw)) fatalx("invalid size of IMSG_KPWLABEL_DELETE"); if (kmpw_unset(imsg.data)) - log_warn("%s: error unsetting pseudowire", + log_warnx("%s: error unsetting pseudowire", __func__); break; default: -- cgit v1.2.3