From nobody Wed Oct 16 18:09:19 2024 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 4XTJrc3ChBz5Yq9B; Wed, 16 Oct 2024 18:09:20 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XTJrc08DZz4r7M; Wed, 16 Oct 2024 18:09:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729102160; 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=09efH7U2wsTP3De6ZP0hO2X+5Gf7QWVxnLOpjlo2X5s=; b=ZWH7PXsFRCVvECE6aHjyCIOaVoIJzcSgS+hAv/u7U0o/w+xap/q8acgl97/XMs6ntpvYD2 +W6Yy/aThmnK0Hk+jKZBNUau0779wva/EY5JqOY30G2rsyS6bGBwBUebSZsKcd3RMrE0Wv ndwg/dG0tp9CgAx6MPStBw1x8EwbmCp+eC7PlByvP+kGuwBqPLisZOamY9rsNeLV5jeGAa WHKO4Ful7GPkjtgz9xi2oQKkZtJ3D9l1yasvSbDf2+Tu3ga01jD5PNIGD46GlC4bwOeSBf Ep5GiNh5t2OgcCTIZSM2758W9pHA1YALramj8atzfIPQh4uRiExgQwuJ6wbOdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729102160; 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=09efH7U2wsTP3De6ZP0hO2X+5Gf7QWVxnLOpjlo2X5s=; b=OKEcQWHSh2k1PwcoXjqWVg8HAXUbvh4PYycKcEh16KQGJTh4NBjPJODMUCgRmEhvB5Bys4 qJg7zW+xhtl/TTVqfLAPgCgDX5MAERuKeDPBK1S6p90DSvYWTfSjCmrv9A+GUjl5gMo3zV z6RSN0bU86hPlezqDDjt/QMdWGtBcFSRO/pRKrMI/Z3cRWzYLZsU1SxKDdEbP1sc1TxoAT oj+l42DA/I5KZ9V3FeaNykVHQBDDSo7JQRkmyJ2JN9hpNl8recqZmTH8ZkxkuEgITA9cMX c5/gELgAlq3LMCkzwpOlT95W71f5pZdt6KMMt7ThvgKoQRjrEtGVrTN0lFggSg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729102160; a=rsa-sha256; cv=none; b=pbL8svyHSf10UYR1DIyAvOMwU+EZ6rccdVKGZJpUQLzDWQ6b9hCW7zt8XoUaEdBVDZWofm ttpArgR3INmmapJNrjQ3Ysfk0npY9ncaA7UXRRcEPoTlzA/JVe9j33+V6PXsf6VSfJWvsy avZKTX4Pi6DH/hovX0rRfa+7v2eTD9CefbDM689Mmi9mtPShmGFvuwqNurBEzEzLohfGF/ wuakLkZlHb28gEPKBjQI6iKEb604nPxYdS32QIuojQXABd6m+4QVQZ6GMsDlat2NjZM9F3 meiPWb5EWfhhF9VQ/Ybl7asNUsUTvCLEiChdx2SbOsSwXUg5ZxUmU81opfXuNQ== 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 4XTJrb6rYrzGYF; Wed, 16 Oct 2024 18:09:19 +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 49GI9J9L046444; Wed, 16 Oct 2024 18:09:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49GI9Jkr046441; Wed, 16 Oct 2024 18:09:19 GMT (envelope-from git) Date: Wed, 16 Oct 2024 18:09:19 GMT Message-Id: <202410161809.49GI9Jkr046441@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: 60516a51abd4 - main - devinfo: Output device description in verbose mode 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-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: 60516a51abd4b09095bc70a830e4a2c5c761af04 Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=60516a51abd4b09095bc70a830e4a2c5c761af04 commit 60516a51abd4b09095bc70a830e4a2c5c761af04 Author: John Baldwin AuthorDate: 2024-10-16 18:09:05 +0000 Commit: John Baldwin CommitDate: 2024-10-16 18:09:05 +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 --- 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 a035d958ab80..25d5a3a36db2 100644 --- a/usr.sbin/devinfo/devinfo.c +++ b/usr.sbin/devinfo/devinfo.c @@ -134,6 +134,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)