From nobody Thu Jan 18 22:43:51 2024 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 4TGHpw0Mtqz57Bgw; Thu, 18 Jan 2024 22:43:52 +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 4TGHpv6B87z4KhV; Thu, 18 Jan 2024 22:43:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705617831; 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=HADDkjSrU6XjwYB8txmcl1Z40jmvwGgWOGwvgp+N+h0=; b=oGFazg2MYc51R+Rpjj9Cz4gjWghyVat1mK+7W1WnrALquileaShJBKgNwJfkE6w7NQKI3h ORf0vJy7eNFBDv7wL+vcTyJcvyZXbTjIoxEtMzcwwFOLDVnRLMHdO6KxHeRFlo9sDdUBuU zhtIbHqR7v5YGpz9NDmDy1+bDhfEgoGH54LSP0gb0v72idUfRxLwy6+VHNFvaBjhmzSb42 ZGNFxCFr6sGA7HsrPZExf5nqjNjfAt5dxJX1PztzWJIvw/H8TSXIlFqdcK63l2JyTJ/4du bShFXiCXXhbtyU0mfm4kK01GffbPsklVBpcxl0RBaITLNazmmzF6Poi2T26sLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705617831; 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=HADDkjSrU6XjwYB8txmcl1Z40jmvwGgWOGwvgp+N+h0=; b=bUhY+rH2ooxEfcBxioY4dX1aJt4f8Z8XmcVTVZsmu3tPzxI/2Er8JWzDMoEaOsyzHU+zOc soycVxdvrv5Af4YND/tGRkJSrvpd61FSKcvuXNe72c6RUFxxmUlFjwy5+K3hhtYM2tg5Vc axdHBQnqwvuoDW4rEix+bacC4yRrzHJlbL+pZc6nshicz2zqB4jxDwuujLj4Ttm5r+jS9z 267j2qNsH4IfT97Rpoy2p6g2GUPv1m3aV/Kz41gzUlCgF4sRn1yx4ne+xLX6V2XbDHuZxV il1D91Rc68gBRmv+8gsJ/ZjRLPsGyZJkPUeJTBk998dULoyeoFNRwuHqDITJvw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705617831; a=rsa-sha256; cv=none; b=wV8WzBOyzb23nieL8FbDft16WidhX4Nk4riwhHeFwFOnuhee6S8qbyyFddjJ1jkLc00HyX YaAE6GGrAhJpMPVecS+9yIIns270+rFEdKmXfIDbaPRJrNdS0Y7c+Ya0td7X1Xsa3BDzCp t7CLCiZ3pBhQztXCdB4H0VG86BXKfwTH6nQ/0J/lxYiL9/+uQq/74Dntn18RiNAY4Gkpte DcN7Ih+FnzkW2+K3EW2E+13OEi1FFmJXnF87TabERVryvYeH8mwHxzhoqpYeARe48pGMwf Yi8wJzX3W+lblaj4VSKeMCouqGHUqX+lbMtgj3nS+D2RhuIwsPR4f02q4zJqww== 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 4TGHpv5HwTzQfQ; Thu, 18 Jan 2024 22:43:51 +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 40IMhpPN025362; Thu, 18 Jan 2024 22:43:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40IMhphf025359; Thu, 18 Jan 2024 22:43:51 GMT (envelope-from git) Date: Thu, 18 Jan 2024 22:43:51 GMT Message-Id: <202401182243.40IMhphf025359@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: 96d7c770efcb - stable/13 - ctladm: Fix a typo and add a FALLTHROUGH annotation 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/13 X-Git-Reftype: branch X-Git-Commit: 96d7c770efcb87d0266c815ba1106a4b8b48628d Auto-Submitted: auto-generated The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=96d7c770efcb87d0266c815ba1106a4b8b48628d commit 96d7c770efcb87d0266c815ba1106a4b8b48628d Author: John Baldwin AuthorDate: 2023-12-27 18:10:42 +0000 Commit: John Baldwin CommitDate: 2024-01-18 22:41:30 +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 0a185d16835e..1384daed74a2 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));