From nobody Thu Jun 27 15:31:10 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 4W92bL5DLxz5Ptp9; Thu, 27 Jun 2024 15:31:10 +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 4W92bL47hYz4CRQ; Thu, 27 Jun 2024 15:31:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719502270; 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=n0IgeZschpdKCI2wQ2pd7zPPfAX2W9j+Ic4Yc1ukFbM=; b=h0iaN+9tsQPbDBJmJoPkaVEmgRUEki2GojstXl+I+tuK9iA2ESkrwuSLRySDXv8Af+8hwc AEziBj9KnS6W46MGYRQfx20ej6RNQS7WVefMFbUwZkKlLqp5gt63UdZ20AQuTWh8kf4Ygp Rq69IpyERVDnYRQkX8UaCjgyQacbvLjNOre/G7zTciGJ0m74zOZh+fCxWrKCPrVygpWNNO 035OrQjDAzIyPNwa4YLxrBZehoxcrvX10l81KLXhD06tQ+MWaJIMrTkQJEyDvNvXqU6fgE 7bxiB2CWZG8/rwpu0/UMYddPkjw4UF87vb1w95v9nRvZo2kF+qnFZD3kUc7+PA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719502270; a=rsa-sha256; cv=none; b=Z7JXSwThqNC+gJ9IiAXbSOQuT2/XW3KyWChIC5Fh2EfycvvZ+pf8A0FuwkTSfbcUjslVDT 6Gl58YOIPRdHJbVHG3t1VR+uKC+sUWpM5qyCeEUf+L1UGERpI/xZvMyA9005UGRmztwZn0 csvOPDuSAijsHMxFC+O0Qxl7ZMTurdfaDmakPhIwTWOGWK5ujmnBAIMGrGpoMx+N8MOe99 tjXnQe+pMSPcvXAuRresJ34t+zQ/BIbXxXW3wElMze7hcKBgV1OGcnH6nPtKCVhTkWE9Jt T0ndnUuQ6w/8bmdnwG98WgaUxZys6xEpvVKWuX5p8jVBc6j7Hty3oSsT2AEjXA== 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=1719502270; 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=n0IgeZschpdKCI2wQ2pd7zPPfAX2W9j+Ic4Yc1ukFbM=; b=wLlwwxc5dqVJvQQsEzOHiTnq67IwJ3ksvSdnAW9MS0qNUqbccwC4IKpwZ21qJcJc8fFFHf ihx+cg3wFLmWtLRYsp61VGcrdVqFAxifX8NHNmvEIfVTdasIT8DTAPnXqDzrP6gkWAy1Fp 5HkgDE0Cz8JFZmtqevD8jaA44cShuC30DtemlcEEBzcuzYsOozH2EsWEG3qQlnvXYeCWr/ byuK7ODcwE78mwrxM5zc9O8S+IJAEzoCKt4aDzjurfzBql67/85HgNG1HCOSiFYG6kv8te vpz17eo3Q7YeMHJXDAtrE6k2/xBbcP7LplzfLIoo+gaZuwnmlCgCJLVYRMWA3Q== 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 4W92bL3lPbzJ68; Thu, 27 Jun 2024 15:31:10 +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 45RFVAN8078910; Thu, 27 Jun 2024 15:31:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45RFVAXs078907; Thu, 27 Jun 2024 15:31:10 GMT (envelope-from git) Date: Thu, 27 Jun 2024 15:31:10 GMT Message-Id: <202406271531.45RFVAXs078907@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 2e382b3bc8e7 - stable/14 - superio: 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 2e382b3bc8e75583e2b260e88d5b38ccbfd1112b Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=2e382b3bc8e75583e2b260e88d5b38ccbfd1112b commit 2e382b3bc8e75583e2b260e88d5b38ccbfd1112b Author: Mark Johnston AuthorDate: 2024-06-05 19:25:58 +0000 Commit: Mark Johnston CommitDate: 2024-06-27 15:27:41 +0000 superio: Use device_set_descf() No functional change intended. MFC after: 1 week (cherry picked from commit 76a79178187f5a3ac05733e068c0860b14fd8632) --- sys/dev/superio/superio.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sys/dev/superio/superio.c b/sys/dev/superio/superio.c index 6333cb06a7c1..ff05d378ce92 100644 --- a/sys/dev/superio/superio.c +++ b/sys/dev/superio/superio.c @@ -616,12 +616,9 @@ superio_detect(device_t dev, bool claim, struct siosc *sc) if (superio_table[i].descr != NULL) { device_set_desc(dev, superio_table[i].descr); } else if (sc->vendor == SUPERIO_VENDOR_ITE) { - char descr[64]; - - snprintf(descr, sizeof(descr), + device_set_descf(dev, "ITE IT%4x SuperIO (revision 0x%02x)", sc->devid, sc->revid); - device_set_desc_copy(dev, descr); } return (0); }