From nobody Wed Dec 27 18:11:40 2023 X-Original-To: dev-commits-src-main@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 4T0fq1041Mz564LW; Wed, 27 Dec 2023 18:11:41 +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 4T0fq056cxz4Dtp; Wed, 27 Dec 2023 18:11:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703700700; 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=YcUWj2qMan5iw9tcicwNUyUrRWMYTecgx+3CA+QJViE=; b=uei/aBgWUcPiGeNvc9utjmtBTJI3UhQ4hOknbDITs9AmDoaBpUv0Yp+JlkGyH7htGkaGkE n19mbdPhzGG7LLF1sjedPkZY1UdK9g+32n4DXK3RQzLE64BKWoqnCrZsZsQej6fDe+DRUU gEHGp7lstuVNWW/bh/SOXoe61JF5mqjqxiAEQLefwulcNeeaSeZF4OFW8hyVP38lsxhyWG rsq8pyLgT3I+sKrsJmFLKdTUWJs++SZuH8G+Cl/5bix7DVyPt+dCmJlbZSQCyIq9LME8Ic 4mTch4CDGH0QREVog7Vtus01Vh7xKjIglWWiM/yozFJHI1KN68AAemvF5pniwA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703700700; a=rsa-sha256; cv=none; b=HmgcY0OcLTLesaRibClAe0NS+cwilvtBvMpJhAit+suYLFZt9jyBD8X8t9fd+WpYWmJmQi fGAif7avV0Cm9aMjDNQ4wDlAcq1Q1C8dmcQakicU5nZKAomiLLkZpzuKQg6ue1KYZqgj6+ 0NxJmN9srcC/c8U0/m4XaphsZclCRHz74wvavTRu6ljJzC2KTrf9pNGyJp+6NuEaxHXK3o BIIIu2uj0Tu3jIh63ca9/RTtd9viTMV11cxdyDFm5CeQDaBX84xA4KxTcwgg3At6gjNDIb HozvqT0BqIbp9z4C/wvBTwtxPYjKu4o7ym7SJRkUAU85w/m3zaIWcUiecVckOQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703700700; 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=YcUWj2qMan5iw9tcicwNUyUrRWMYTecgx+3CA+QJViE=; b=YVhiHy1aLlmgYfDiajn7jdpB7WsT+XVNgnoBf8ZEoU11gSSThez/3QPwfjh3FpuMVntu7F O9INRlBkG2iQsY8ooTvwvmtKZojCZn0Mk45GVAA5SOyOScEepRg7La1463jZ1npdFHau9h Uku/v0cMbWLUN3hLf4+aikovS+j15udVpT4E4Acvl7H03WIMND2uVMVViORMS9ejC61Fwi OkURUqXCT59Nnt5mEqZNp1exuIEH/PvkHQDgHRC419YUVBUB8RKTuHYPRX6HZwo+r747yI eQPNcCxCJyEqUvsqS+FcoVGMwfGKKgUgsF8Y6rWHUKFEkXpPR6rNRySmg5r2pQ== 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 4T0fq04C7szpJG; Wed, 27 Dec 2023 18:11:40 +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 3BRIBe6s049410; Wed, 27 Dec 2023 18:11:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BRIBeHP049407; Wed, 27 Dec 2023 18:11:40 GMT (envelope-from git) Date: Wed, 27 Dec 2023 18:11:40 GMT Message-Id: <202312271811.3BRIBeHP049407@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: e8d83548349d - main - ctladm: Fix a typo and add a FALLTHROUGH annotation List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: e8d83548349d8cafadd1f95667fd8b055b228931 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=e8d83548349d8cafadd1f95667fd8b055b228931 commit e8d83548349d8cafadd1f95667fd8b055b228931 Author: John Baldwin AuthorDate: 2023-12-27 18:10:42 +0000 Commit: John Baldwin CommitDate: 2023-12-27 18:10:42 +0000 ctladm: Fix a typo and add a FALLTHROUGH annotation Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D42934 --- 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 fd7fd2f57981..49938be9282a 100644 --- a/usr.sbin/ctladm/ctladm.c +++ b/usr.sbin/ctladm/ctladm.c @@ -573,10 +573,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));