From nobody Fri Apr 05 22:57: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 4VBDR41zQQz5HMgP; Fri, 5 Apr 2024 22:57: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 4VBDR40z00z59JH; Fri, 5 Apr 2024 22:57:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712357872; 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=VEcSgx5Kn1M+QIfuvbn/jG9RZiflb30GupnrSTGUNxU=; b=LJrKJerUZ5Wbf0tDv6H0nPoB2e5indhQll74Jqh6E3CQ0MbMK31TnRlCZpX7VH8aacvtiM eLeJ+GVTIzGRyQ9OX0rof9BS9h4/6pwZFDkRHbKoAg4X3te7zEBRdnfPMQy+QRyFVkmxAD g1uvEmjF1YAsH2D9+QwmZXL23hGZPV/H4uN17r18eCPr9trvdD85AzeV9w1BfIN6ryfEP2 hDN7pHONVAeLzABY8M1eyxmOIlTtk99taejp+8DEMjZUEJeaMCi/EXM6BMmF2pnSfo1TVN nwD3oIRsunDluae23RW8PSqCptPAW84dzDt8L0z4IpSoRMRO4goNvDsPzSjvCA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712357872; a=rsa-sha256; cv=none; b=U4H2QM0I5vg6dxsvrhZMxs0V3gCIDcYVKVzBI/UIIhVxbSp8lktHWrlTY4K6dz2WGOGNvE FpX2PTgu78ztrjyKGIzHu5T+lDBRUVhW/Fm/4kvb33Xdiq2WqsRYF0Uw5D+mTnOMks+Q3i rqXxwsp0pxNbgE7i8FBjuuEo7seeBasdfNRHOfgJ72mJn8qCvelUk0OTRGaA4mOe2hkxRt c/Qd/6vDFlB4T3bv1U+JmC4j4q9efYbtO2IKKROGqE9BgA15hibS0u56YDmHp6skjWg8oO Lk2c27yRFgUnwVdb0z8ZVdecT+BHFCKELTWpg23mmnH2CVk5nWUyrgyrOsauOg== 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=1712357872; 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=VEcSgx5Kn1M+QIfuvbn/jG9RZiflb30GupnrSTGUNxU=; b=HZquYeCnpgqAfTB2KvOZKsw0BHPl3BbE76Ec/R7I9g10Qr2n1lxEhUG/rUnFfaS06T2lVo aiBx4iyjetJwygtKFjKRii56q0Ef1PfXM4EGfAIInSZBTUNx4TFjkuPYv4oMJ9q+jldSBr MbIYa+bZDfHHbZztJEay1sTzHwUgJpq/B2Hl7nLzM7yVIrHg7JlD6+600KZOlMdH1F/Xp3 Kuld+lPNpNkUeOdXOv2ppdEedfbIvS+8HbbN5n56dPYtl9239pDu62cGMkfcCIGrmnFVmm jaRuatnOe5e0rrh1YoK/Wi466uzpGb5X9cCI2j6sHj/qJcBVpvDTqqJUPU9ImA== 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 4VBDR40b40zJFx; Fri, 5 Apr 2024 22:57:52 +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 435MvpuM058811; Fri, 5 Apr 2024 22:57:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 435MvpT4058808; Fri, 5 Apr 2024 22:57:51 GMT (envelope-from git) Date: Fri, 5 Apr 2024 22:57:51 GMT Message-Id: <202404052257.435MvpT4058808@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 03cfd91998ac - main - devmatch: Make -a work for all devices 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 03cfd91998ac017acd3102a184e194d42e50f843 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=03cfd91998ac017acd3102a184e194d42e50f843 commit 03cfd91998ac017acd3102a184e194d42e50f843 Author: Warner Losh AuthorDate: 2024-04-05 22:31:55 +0000 Commit: Warner Losh CommitDate: 2024-04-05 22:53:47 +0000 devmatch: Make -a work for all devices devmatch -a should produce output for all attached devices, but doesn't. Noticed by: cperciva Sponsored by: Netflix --- sbin/devmatch/devmatch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/devmatch/devmatch.c b/sbin/devmatch/devmatch.c index d93a35e5633d..6124794d113a 100644 --- a/sbin/devmatch/devmatch.c +++ b/sbin/devmatch/devmatch.c @@ -406,7 +406,7 @@ search_hints(const char *bus, const char *dev, const char *pnpinfo) else if (!notme) { if (!unbound_flag) { if (all_flag) - printf("%s: %s", *dev ? dev : "unattached", lastmod); + printf("%s: %s\n", *dev ? dev : "unattached", lastmod); else printf("%s\n", lastmod); if (verbose_flag) @@ -445,7 +445,7 @@ find_unmatched(struct devinfo_dev *dev, void *arg) break; if (!(dev->dd_flags & DF_ENABLED)) break; - if (dev->dd_flags & DF_ATTACHED_ONCE) + if (!all_flag && dev->dd_flags & DF_ATTACHED_ONCE) break; parent = devinfo_handle_to_device(dev->dd_parent); bus = strdup(parent->dd_name);