From ed3fccd1728194a81894abefa8648f8019d0cbe3 Mon Sep 17 00:00:00 2001 From: claudio Date: Tue, 8 Mar 2022 12:58:57 +0000 Subject: [PATCH] No need to print fetchtable twice in this error message. --- usr.sbin/bgpd/kroute.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/bgpd/kroute.c b/usr.sbin/bgpd/kroute.c index c517c6843a4..e911b5335be 100644 --- a/usr.sbin/bgpd/kroute.c +++ b/usr.sbin/bgpd/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.243 2022/03/03 11:19:41 claudio Exp $ */ +/* $OpenBSD: kroute.c,v 1.244 2022/03/08 12:58:57 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -3233,7 +3233,7 @@ fetchtable(struct ktable *kt, uint8_t fib_prio) } if (len > 0) { if ((buf = malloc(len)) == NULL) { - log_warn("%s: fetchtable", __func__); + log_warn("%s", __func__); return (-1); } if (sysctl(mib, 7, buf, &len, NULL, 0) == -1) { -- 2.20.1