From nobody Thu Jul 3 12:01:09 2025 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bXwMp00gdz60qxm; Thu, 03 Jul 2025 12:01:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bXwMn4Vfyz3mlg; Thu, 03 Jul 2025 12:01:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1751544069; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=90mySGNAPBphBBbaixfmdjBQzFhKo9mwGd6zValUAV4=; b=BjEvMp3kqUi0vb8Up5CzFgPoUrJrJC2H3vT4kp/+OK2BSBNnr/Sx8eAm5iI3Kxto+PvaDE JwabfCLU6ZsWw4x50YILSIL8GErcUUNiXk5tyTBMC58S6btkCkimI5Xbnoo0BRQtXVapcY ngv5GIjjF5tW6P0eq3fGY0CTAfUbinNqf8aaQpJordazeJmXV9o/wk4eyci2+W/Susa8D8 AMaJ2FP+ILZHstrqtQaT07P4EWFYrnJleTaP/ErY+0ilG5XqlqaCJ88NPR/CaHtbuEg5/B EmKBQuXaxA4JGJxmzg6C5FhC+Eum02MpvLim13GEyrr5P09+SrtwuUKtsi/z+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1751544069; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=90mySGNAPBphBBbaixfmdjBQzFhKo9mwGd6zValUAV4=; b=dhdzb7sJW2U/O0EcWfk1M/m4k6ZeG3wVEcpmTnieELgb+MaCcFPrj3VLS8xG4LCKU22Ck/ HgztebnC8vHUpGUMqhyEwO+knDXLxtolTFNvQdYOTf7D0NCCCRu7ga/pP0DzSICsenK2d/ OhYZzQkNkiVLMRFYK1qL1ssRBflRK/8v4BJlvZuoPNMJtYROKu93htI/xLSHuolNWUp974 VVjXE/V0ZJCrdD6hvJ0QoE1Cd5K21/NtP7GgQR2TPgYwmOlRARdxP/zk3WyBwORIIc3yy+ dJc62gQegedLHStWqfDb+kYuhiDogHepkl4VQHHrgeJVJiJwWyPTt+Iys2HciA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1751544069; a=rsa-sha256; cv=none; b=ltD0BLCc5ql4VMIIyOJ4Z+y/vkCNuouO7wLDf39+iB9fXYBei6F1tfLmM78lEKEnymB6N+ ClVOA3/epvpjxmbt0s55EZqMVEMm8D6Q+GaKE5j6t/BCOVOxTlpPTH+K/W8pzygf/TuTcw QZm2ms5lDupRzWCTdWw17cg2Ow0x47xLH4yQdfwPo/HejgB0xTvEAx0mWMbTyO3CSYy7KG 066dD2whXG7uRPw0sVvLvqC1aM2iUKDADsex9wH2ZXNDQHJQIgqMU4V1x1nL2NbsI0yZgI LjDJ0DLhWrZMLUQnW7Vz8kNV56r+TWN918aLIbp55mwgUpoUy+c2kk5RH8V2ag== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4bXwMn42R8z13xW; Thu, 03 Jul 2025 12:01:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 563C19kK052010; Thu, 3 Jul 2025 12:01:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 563C19Wu052007; Thu, 3 Jul 2025 12:01:09 GMT (envelope-from git) Date: Thu, 3 Jul 2025 12:01:09 GMT Message-Id: <202507031201.563C19Wu052007@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: 467b037a8aab - main - pfctl: use __func__ rather than hardcoding the function name List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 467b037a8aab98083e4fec7b6ccce0f9a533bd2d Auto-Submitted: auto-generated The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=467b037a8aab98083e4fec7b6ccce0f9a533bd2d commit 467b037a8aab98083e4fec7b6ccce0f9a533bd2d Author: Kristof Provost AuthorDate: 2025-06-27 15:05:00 +0000 Commit: Kristof Provost CommitDate: 2025-07-03 07:16:14 +0000 pfctl: use __func__ rather than hardcoding the function name Obtained from: OpenBSD, kn , e7f9714dfb Sponsored by: Rubicon Communications, LLC ("Netgate") --- sbin/pfctl/pfctl_parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c index cb083bd09344..de3048b27a47 100644 --- a/sbin/pfctl/pfctl_parser.c +++ b/sbin/pfctl/pfctl_parser.c @@ -1797,11 +1797,11 @@ host(const char *s, int opts) goto error; } if ((ps = malloc(strlen(s) - strlen(p) + 1)) == NULL) - err(1, "host: malloc"); + err(1, "%s: malloc", __func__); strlcpy(ps, s, strlen(s) - strlen(p) + 1); } else { if ((ps = strdup(s)) == NULL) - err(1, "host: strdup"); + err(1, "%s: strdup", __func__); } if ((h = host_ip(ps, mask)) == NULL &&