From nobody Sun Jun 16 20:38:05 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 4W2PwZ0s9Nz5PRKB; Sun, 16 Jun 2024 20:38:06 +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 4W2PwY6tj9z3xKg; Sun, 16 Jun 2024 20:38:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718570286; 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=DDLepf5sA64N+dukNEKsi/ndpO1zGaccZNc0ZOmEbf4=; b=J17AnrjjNtFYvyR+UxbcULspnNMqnyeHFfr2tVaSUNi0qytzDzDB7cqb0kf5AlddylMJcY 9c0FjbxmlJSE26HFyBjPhnMJHPl1HnOfJnvTvjbeW8fuFyJ7GrqPKY9r1CQBXe81QemeDy IlZYpLuJxp8yjIilKLOrr19Li8g9kUOspLrNg/68+ibMUL3J8VOKXKN5xcBZi9oIXP/Kcj 4An37N3i45Cy/8rIuYOXDDipPjCuZmAlCYSN4Uhz3AsU56spE2B/ucpFuuxjc9zicBQuFz A+iUjEKhxA8QQeaOMxzRoKat03n8qqyN8KJoDo8E/gNylaX5Yq/6J1jcMmcKyg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718570286; a=rsa-sha256; cv=none; b=XmcCQnsZQrcV1MJW0mGCyN6gKiaVu8daaFlo82dH8GmvKPhff6hRqJec5YSdXWswEya01q arhx1PTHVdMIrqWrljBnj3lFcGvRE2pgdmt8kU1WOc+3+IKkChzB4jeO0BFISERI/D/UiR IENaJq8yRnr1ySXyZxxRM67mEjPv7WJpeMLYhpk+F06ud4fAKGUV5/WRw00qzH4CQw+M0z fjYwwrjjEaTydUGi1pwg+dvQ+DWJ75TYnuJedvhioRh7YVaytSYrK8/ApKUCdSfPszeIyF 3ekB2hmBzML5RikB0hkH7IvA4yscFrf4VnuxYc8PJne8gpHF1rSAUGrnPwavtg== 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=1718570286; 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=DDLepf5sA64N+dukNEKsi/ndpO1zGaccZNc0ZOmEbf4=; b=qhKCLz/HotvH16fuO/ZxuRERZe7mPdZIxv5Ev1FAiCrqsaVgiFJX0y74D4uaX8DAvxZXNt ViJdB0h6TqLV+YTXzVBb+/PKezjdzKlG9VPzsCQ8TA3/8xyiPhji7kyDZP8xB/YEU5Ocxu u8SOJ/LNdghc0P5tKRGO9qpKGc/cMvochK5Rg7iuNy3VKWQRVbr7mP+SzExXM/VezPJs8p sYWLBd7isYB1ICPnjYFWXIbUSvFPdq+vdzEfDIlxQtcDcuhLLFTs+vTKS0iWB2dIocOHPo uGU755O9XAyavdrQno4SZMtwOoEavTdnIJd/g2KqpzrQRfa5GwbwhiUCJ0+X9A== 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 4W2PwY6SgJz12Xd; Sun, 16 Jun 2024 20:38:05 +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 45GKc5s1079806; Sun, 16 Jun 2024 20:38:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45GKc59W079803; Sun, 16 Jun 2024 20:38:05 GMT (envelope-from git) Date: Sun, 16 Jun 2024 20:38:05 GMT Message-Id: <202406162038.45GKc59W079803@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: a96a9577127c - main - pir: Use device_set_descf() 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: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a96a9577127c9bf804e7e47e38e7b4123a43efa1 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=a96a9577127c9bf804e7e47e38e7b4123a43efa1 commit a96a9577127c9bf804e7e47e38e7b4123a43efa1 Author: Mark Johnston AuthorDate: 2024-06-05 19:29:30 +0000 Commit: Mark Johnston CommitDate: 2024-06-16 20:37:26 +0000 pir: Use device_set_descf() No functional change intended. MFC after: 1 week --- sys/i386/pci/pci_pir.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sys/i386/pci/pci_pir.c b/sys/i386/pci/pci_pir.c index 6750e85deb40..ec56fcb2c54e 100644 --- a/sys/i386/pci/pci_pir.c +++ b/sys/i386/pci/pci_pir.c @@ -653,11 +653,8 @@ pci_pir_probe(int bus, int require_parse) static int pir_probe(device_t dev) { - char buf[64]; - - snprintf(buf, sizeof(buf), "PCI Interrupt Routing Table: %d Entries", + device_set_descf(dev, "PCI Interrupt Routing Table: %d Entries", pci_route_count); - device_set_desc_copy(dev, buf); return (0); }