From nobody Sun Jun 16 20:37:51 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 4W2PwH3LYfz5PRRL; Sun, 16 Jun 2024 20:37:51 +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 4W2PwH1fHkz3wvK; Sun, 16 Jun 2024 20:37:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718570271; 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=fpFxjERr/rhmxi9qbOfXTDZaFjwqQ9AZzF03nBakCJc=; b=Z3HgVrIAwNbUbAwi0SXfglE8xYS1BwOUtFI1sGDfDI0ZIyWRtoXhcIinzCT+ERZ7GcgwuF k4YuOEArIf0rPmMQS6uu40ao/QaneLrFAo+4q0T7KNvM0pO7GfR+pJgTAaC27Zn/ahNKmf KGGrmCw9M0HvRWZl4mgSVzo2yFNVjkx1iqCAwA3QZ8mOrizOleGidS0gfhZ4YcXpPTWzSJ k65UWzzjG7jNRYuFb/7qxtwlzPHakeysREm9b9vowYkgaTwVDO9FopBIXJjgE2rLBRx77S MaiOOEh8HbV/aayR5s4Z7+sgQOL5Dzgs74sGtFwpgihr5XfMs8WMaqvRLKLDbg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718570271; a=rsa-sha256; cv=none; b=ufwstUmalFxPUbl1XiKRlxl/ND2PruqCn0Mi5ET0x7ZSRf0FpGd6a4TrrkgoVGHG+dk2cU AxMIII+qOZ3Plc7V7v6zJgMn1VAVRoMReHe0aO4zJEdtcHXu4149XrXNpTIGeMoUB7Tb/h lutUcdgreyHWbUrcsAzfjj7jop54iWLqseVl4CFr3a3ho9PD5joZPSYp29SpM0STGN3FoZ 25VMr9oE3I5Tm4laUnGiDdvz4Ma06vpuHt5hqvlMljcMZeal0KAPg/2GgZ1/Q5MzrCRFQJ UEQKoGG1LkAROz3rPCyTNmtWDq01RIqaoYA2c4N2jYxcKpnjwBtY+05+aoH6sg== 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=1718570271; 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=fpFxjERr/rhmxi9qbOfXTDZaFjwqQ9AZzF03nBakCJc=; b=nRr9Brkh07j1pUH9DBGiy9ql547q8k6wn1Z58Fx8vwM5HhazIzrJZRWrFeRATJlU+By1if 8OMDhFXyoAEGCbmu4Xgk0piMUlh77gmAHNGcBpAkqfQumbcvyWAT6iyqw5CIZjxRLyZaBR bBrujoDdXdZcmFp17XxZ5AvdsRJUo7zRuDhUOi2kVb2lbU0mjexyA5lrYAH5jCZNWEFpNR BrhKfaJNOh9UKwnRwwsgJCM3JmviqV4vJUgbzXRr0xAQGEduD5DK9VPJH0lyvv6dMnEHnx 2W9xEYcpWMccIuSurh5STETygwloA11mdFDJylhNrEpYaRL0PQmP/FqidBiVZA== 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 4W2PwH18Ksz12yY; Sun, 16 Jun 2024 20:37:51 +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 45GKbphv079290; Sun, 16 Jun 2024 20:37:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45GKbpKC079287; Sun, 16 Jun 2024 20:37:51 GMT (envelope-from git) Date: Sun, 16 Jun 2024 20:37:51 GMT Message-Id: <202406162037.45GKbpKC079287@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: b67f24852378 - main - nvmf: 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: b67f2485237815b6bdb130e7e9beff7043491dd3 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=b67f2485237815b6bdb130e7e9beff7043491dd3 commit b67f2485237815b6bdb130e7e9beff7043491dd3 Author: Mark Johnston AuthorDate: 2024-06-05 14:17:50 +0000 Commit: Mark Johnston CommitDate: 2024-06-16 20:37:26 +0000 nvmf: Use device_set_descf() No functional change intended. MFC after: 1 week --- sys/dev/nvmf/host/nvmf.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/dev/nvmf/host/nvmf.c b/sys/dev/nvmf/host/nvmf.c index 47cdbe7e47fd..623c76954720 100644 --- a/sys/dev/nvmf/host/nvmf.c +++ b/sys/dev/nvmf/host/nvmf.c @@ -251,13 +251,11 @@ static int nvmf_probe(device_t dev) { struct nvmf_ivars *ivars = device_get_ivars(dev); - char desc[260]; if (ivars == NULL) return (ENXIO); - snprintf(desc, sizeof(desc), "Fabrics: %.256s", ivars->cdata->subnqn); - device_set_desc_copy(dev, desc); + device_set_descf(dev, "Fabrics: %.256s", ivars->cdata->subnqn); return (BUS_PROBE_DEFAULT); }