diff options
author | Renato Westphal <renato@cvs.openbsd.org> | 2016-06-18 01:30:29 +0000 |
---|---|---|
committer | Renato Westphal <renato@cvs.openbsd.org> | 2016-06-18 01:30:29 +0000 |
commit | d57a14b1bc6f5b1448ed9cec329e48dbfeeffab2 (patch) | |
tree | 2fca03bafc2ea5c631db09fe35b0a7f9318b5178 /usr.sbin | |
parent | 6c1a25cd20ee4f7c28248421d2b6f0109eb8c14a (diff) |
Use log_warnx() instead of log_warn() when appropriate.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ldpd/ldpd.c | 10 |
1 files changed, 5 insertions, 5 deletions
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 <renato@openbsd.org> @@ -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: |