From nobody Sun Dec 01 04:57:47 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 4Y1F635whDz5gD3h; Sun, 01 Dec 2024 04:57:47 +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 4Y1F634229z4CTN; Sun, 1 Dec 2024 04:57:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733029067; 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=gau4DMONW+ixQxcF70KwD40U81Lnfw0gboSGd12MRBA=; b=TOHLkeNYCSifaA1o1nYQ5zZqq3V6+9G/tzMpvjdnrNrtYVYOyAkkda7ewxYTbdvFVQ0jZf GSqDOyLs9P1xA+HrEIEMdFwqAWhqs2ki3z89G+N6tLTDE7WTpHqYPcDHpHvcMR+/tT5w2s yw2S3bmFZUIAqUeqxEbq7XBtYIsUztGM6l4lF0Z1k9qKTJaET4G2afLodEDKtQlM+0tDII nPhYKpUUocMjkCfwNaPKvDNy5DI/9jnr+5uBMuz+E3vWgW/ns2mx1MC9V+GWPxMy4TDANA xO+GNJY7lLsAaAoAL5c0POskAD3iv+f6gqg5u3TY6eHgGiQzvWvjwlorReS0+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733029067; 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=gau4DMONW+ixQxcF70KwD40U81Lnfw0gboSGd12MRBA=; b=wMaE5txbQRc/8jLtLKnYGa3khKbeUoC3ZksjwPsBTHXiWOurKPKNHjXy4j1Hq6X/hgOp1W 0CF0AjELLfOi8B6bwvNbFgMi1hweF1d5Cu0x+IJaQNxNeq4CHGGeiIAcPprtkfolZtQO/0 lvhEiWi1FnGnf/pshsqNzSPeXjswQR2RSkgaEVPwLsx2nw6f4wF2mK1K3mSysGUbi2qcRN Xp1a+BWJfVBR3VpS4QPeXFNux6S/l+WTi3yTImhcW5Ixl0wsf3sd1EZXU1iGzhvwCgev49 RF0xEvWjTEBHuupMGe4KAYm9Y/2zrtprpqye1pkMslgbbOczZM1okmDdpsVhJQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733029067; a=rsa-sha256; cv=none; b=qI+m8Fn4ucjtRq1ZXs6Xokc4XekshjxbaMTJP/gO0jH2bN799SgMDLRDfqpJaZoBI6UHex Kr60Z8litRRw+K137dn3S0RRVcEomrqPGSe/clbp0tGez8+67J2a5+qnrUJ5d4fr1RfG/r KNf6CUnaQ8nq7Rg59/vX8zxAX2SsY5yquglOCvjxwTNtwnl0Zr6p/2aH6VEmFYoAL14YwT fl1nVFkIrW23AzIxDuNJmCpZu08A5XhBi8jFD830ghejl0KB1sz9AY+D/ARIlu2/Gq4RdU 20/c3UxbiIAoRz2+bUqptBjPhFx/TizwMYhtgRa81/LYW8srpIdeAn86PL9oIw== 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 4Y1F633fD6zf7V; Sun, 1 Dec 2024 04:57:47 +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 4B14vlaA096924; Sun, 1 Dec 2024 04:57:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4B14vlNa096921; Sun, 1 Dec 2024 04:57:47 GMT (envelope-from git) Date: Sun, 1 Dec 2024 04:57:47 GMT Message-Id: <202412010457.4B14vlNa096921@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: 7a230f2fc16d - stable/13 - devinfo: Output device description in verbose mode 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 7a230f2fc16d24ce0914a0728df1f9e134a2138c Auto-Submitted: auto-generated The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=7a230f2fc16d24ce0914a0728df1f9e134a2138c commit 7a230f2fc16d24ce0914a0728df1f9e134a2138c Author: John Baldwin AuthorDate: 2024-10-16 18:09:05 +0000 Commit: John Baldwin CommitDate: 2024-11-30 21:33:52 +0000 devinfo: Output device description in verbose mode The description is listed in angle brackets after the device name similar to device probe messages. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D47157 (cherry picked from commit 60516a51abd4b09095bc70a830e4a2c5c761af04) --- usr.sbin/devinfo/devinfo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.sbin/devinfo/devinfo.c b/usr.sbin/devinfo/devinfo.c index 060f272dda79..d7d5c7c0487d 100644 --- a/usr.sbin/devinfo/devinfo.c +++ b/usr.sbin/devinfo/devinfo.c @@ -135,6 +135,8 @@ print_dev(struct devinfo_dev *dev) { printf("%s", dev->dd_name[0] ? dev->dd_name : "unknown"); + if (vflag && *dev->dd_desc) + printf(" <%s>", dev->dd_desc); if (vflag && *dev->dd_pnpinfo) printf(" pnpinfo %s", dev->dd_pnpinfo); if (vflag && *dev->dd_location)