From nobody Thu Jan 18 22:43:44 2024 X-Original-To: dev-commits-src-branches@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 4TGHpm5W14z57BY5; Thu, 18 Jan 2024 22:43:44 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TGHpm3xXfz4KFv; Thu, 18 Jan 2024 22:43:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705617824; 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=roS35OXhpfvDGmW5hueTBzYfl3tqfgymUlUeSbx+zoY=; b=Lkwvh6CsCkohY1o80tI1eHLATaVwQPUN6Cy+LRAO75oDPWzTWGsaXZi9sh9o2HPUn7oNru 2eQ1gN6ZT8v2JpGq0f0sDlXa0w7xSOyxg+SCrEARIY/Svu3yQkViphT7sH6S25USpV+Beq cZtkHDSHOMVIiQIK4fyB/jKVNQKmZChfcTeRBVgc2t+QbQuwBULOH3xIvt5sYBQud7tU4W ocjOSSS82GmklivJFrDYrcEm2xVBuR8XAB98gyNdpJysZYnB5A2AV1kNhisw9khqUnn8i0 NNODFXXr7L7DnGuHnCzw2nxCdYIdRIoa1QAU+eCkMVrCgGJiYP9j4gvFcKUxWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705617824; 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=roS35OXhpfvDGmW5hueTBzYfl3tqfgymUlUeSbx+zoY=; b=kxxhmAXuOAKcetR4nrO8wrbVRNrutCdV8/grn00bpdpQBTifcH0iOxNkzam+RLPuKx0t6t /ZkkErbzjjDNN19O/SO2NEn/b3rEcJH627AEwV9u0SzvTSotnrGaaYgOx02n2rxARUxeQy riNfqURnqRUrD3eLwrjIMjyhuCyRqDy+5fDha/9DtCcpWMoDMdHJcaJvzzmApR7RwNQy7O 39i4mSnVW/MJ+atvM57bgQlx1eh2QxYX01Ju0NeBKyoPZlcVfMOzfUmnJJbwphGcb20M+G b3nnLpAGwFIvcDLlkR8KDJxUMVpIT7nMuw9NTcRSJIW40kobPn7UzVTygNH8zA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705617824; a=rsa-sha256; cv=none; b=Qf6mHDtd2PnuC16tGo4TCpW64U3qHmAnSZBIE6YHtgSd4uSpuwSk4gGcPPgMakCY60Yiqy KOaUYBy3HUjsJt7u1OUhnzQNUpSPMxOT8fOoeAL04I8Ki6hQ48N9C/iQnOR3kys0hn3Zl1 CZm5p3sys4JwNX9vfDXvyGaqVcphJ5DJFL+z50Ye3M7N/vsLofYH8ezWWXLWz3+wMEGblx hiF4bvDusLnJ7jX1V4JPviB3s39Ugvduv8Gg5/D4FqMHf4nDME8Fsan7Yy7FFttbBoxHT+ jZ6V1V/crjC0NizEtg07kX6At/LXfKRV8WefS3DNx4KXGXp1JzYtpiFlLTDPdw== 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 4TGHpm334kzQfL; Thu, 18 Jan 2024 22:43:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40IMhiuQ025071; Thu, 18 Jan 2024 22:43:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40IMhiOl025068; Thu, 18 Jan 2024 22:43:44 GMT (envelope-from git) Date: Thu, 18 Jan 2024 22:43:44 GMT Message-Id: <202401182243.40IMhiOl025068@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: f55f4ef13e06 - stable/14 - ctladm: Fix a typo and add a FALLTHROUGH annotation List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: f55f4ef13e06c2815861edc305e6139bd04cfbc4 Auto-Submitted: auto-generated The branch stable/14 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=f55f4ef13e06c2815861edc305e6139bd04cfbc4 commit f55f4ef13e06c2815861edc305e6139bd04cfbc4 Author: John Baldwin AuthorDate: 2023-12-27 18:10:42 +0000 Commit: John Baldwin CommitDate: 2024-01-18 22:41:27 +0000 ctladm: Fix a typo and add a FALLTHROUGH annotation Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D42934 (cherry picked from commit e8d83548349d8cafadd1f95667fd8b055b228931) --- usr.sbin/ctladm/ctladm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/ctladm/ctladm.c b/usr.sbin/ctladm/ctladm.c index 62dd87155671..3ccf93d5e94e 100644 --- a/usr.sbin/ctladm/ctladm.c +++ b/usr.sbin/ctladm/ctladm.c @@ -574,10 +574,11 @@ cctl_port(int fd, int argc, char **argv, char *combinedopt) } case CCTL_PORT_MODE_REMOVE: if (targ_port == -1) { - warnx("%s: -r require -p", __func__); + warnx("%s: -r requires -p", __func__); retval = 1; goto bailout; } + /* FALLTHROUGH */ case CCTL_PORT_MODE_CREATE: { bzero(&req, sizeof(req)); strlcpy(req.driver, driver, sizeof(req.driver));