From nobody Sun Jun 16 20:38:02 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 4W2PwV593kz5PR6y; Sun, 16 Jun 2024 20:38:02 +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 4W2PwV3g9kz3xG9; Sun, 16 Jun 2024 20:38:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718570282; 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=TZBpNWs/bK9Or1RmkxGy9B3c3Ri6vUFAB2dd9ZZRA7o=; b=lypg6obZxs7SmG/SUFng6RyktnNfBT541kqbyraY/OqJZSt39KmxmYzcBBhCLysRjtumWp kvzOl6KdwuMspth8GHxt47gNPMkW6hwM3Lw5SN7m/EWHc34+ayLLdBnSPi/vXVpldWyLsZ TuCEO61L6dOSPAaLsdsR3Dj1dLMmlD8P5MjVP75L4FYfjM6bUyF46HSvRDGIzW2xlSjcMy QxN3qbrNQNzxEXDeI6kI4Z0BIa9jwNqQmijcaSCNVH6V8q3ZnXHJ44gqS8Qjfh8tGn2rSO o5jg69M6kzlh/f97zfGxo05gKj4hUaVN+mentvOkTFM3jkxFHv+J3ffJQ5JCCA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718570282; a=rsa-sha256; cv=none; b=lI/GIsE8gxTvfdnjpw/xZZXI+LSp52M0LaS4meXFIJrRoFwsekIboLg3bJCJPwRoNorfj5 1ZnRze6v/3HJyvi4DDDHc2S1hb3SV11u9QXTjSBTS4XgQVkx7lncV4rRexWr7h/66czU5I X1fp/emvOIExTOkrq1xYnj/06BxBiTU3PE2IN9qXfWCywvHeKYSeb5/VswWMa0GswOwo8l u+Tcx34lXQvcOLXJOkqiWiqDGX6ZIrX596JiVQSvfDpvTo0qPyqgkZtSHi9BYzVJaHrGqg kNyo5HIa4L3k9zYB5onjmtIUpLe3aOyExrcgdFkXD4lXyZWcjiuFFW73cvz+CQ== 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=1718570282; 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=TZBpNWs/bK9Or1RmkxGy9B3c3Ri6vUFAB2dd9ZZRA7o=; b=WTuiXZiXbffB2UfyIzTkOPL7stjMeqKsXCZLDJbRpRK4J8x/S28D2Do03VqXW2ZxcDE1Su Peei6OokAiU266atyBQtqNeIZqQkwWgYJYZ6/nmiPBw0w4hXgsP0u9TJGg1XxApu6HshQh DwGrdITt3JIwxKHg8Ko6W7bbrf6nXSY0iMMom+xhEY7pqaMoSHydEJJ1nGm0kD6Qza59ed MAIvIaKl22+HhzDj2bRm7RDitbNeDx7Vx95L7xu39vDjVALvWYyA7xRqwgD/+o1YN/AVfB CYdsHomzBDzOTx7YIwNMO2UeaxEMKxcVUCyYXB9ZC2xskEvEwhd1ZXcr4gkZEg== 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 4W2PwV3Hfkz1321; Sun, 16 Jun 2024 20:38:02 +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 45GKc2lC079692; Sun, 16 Jun 2024 20:38:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45GKc2sn079689; Sun, 16 Jun 2024 20:38:02 GMT (envelope-from git) Date: Sun, 16 Jun 2024 20:38:02 GMT Message-Id: <202406162038.45GKc2sn079689@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: 76a79178187f - main - superio: Use device_set_descf() 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: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 76a79178187f5a3ac05733e068c0860b14fd8632 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=76a79178187f5a3ac05733e068c0860b14fd8632 commit 76a79178187f5a3ac05733e068c0860b14fd8632 Author: Mark Johnston AuthorDate: 2024-06-05 19:25:58 +0000 Commit: Mark Johnston CommitDate: 2024-06-16 20:37:26 +0000 superio: Use device_set_descf() No functional change intended. MFC after: 1 week --- 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 35b15ac4d62e..ddb06af93bec 100644 --- a/sys/dev/superio/superio.c +++ b/sys/dev/superio/superio.c @@ -615,12 +615,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); }