From: tb Date: Thu, 5 May 2022 14:44:59 +0000 (+0000) Subject: Switch the log_warnx() about trailing garbage to log_debug(). After a X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3efa2e2d295101f1bcf990745e85df0645f9ef98;p=openbsd Switch the log_warnx() about trailing garbage to log_debug(). After a maintenance window, my ISP started sending an unexpected 'ff' byte at the very end which created noise in the log. Apparently this came up before. From and ok florian --- diff --git a/sbin/dhcpleased/engine.c b/sbin/dhcpleased/engine.c index b587f3bf6d6..8ed75d35ac4 100644 --- a/sbin/dhcpleased/engine.c +++ b/sbin/dhcpleased/engine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: engine.c,v 1.37 2022/05/04 05:57:18 florian Exp $ */ +/* $OpenBSD: engine.c,v 1.38 2022/05/05 14:44:59 tb Exp $ */ /* * Copyright (c) 2017, 2021 Florian Obser @@ -1188,7 +1188,7 @@ parse_dhcp(struct dhcpleased_iface *iface, struct imsg_dhcp *dhcp) rem--; } if (rem != 0) - log_warnx("%s: %lu bytes garbage data from %s", __func__, rem, + log_debug("%s: %lu bytes garbage data from %s", __func__, rem, from); log_debug("%s on %s from %s/%s to %s/%s",