From nobody Sun Jun 02 23:47:24 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 4VstnT4652z5LVgV; Sun, 02 Jun 2024 23:47:25 +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 4VstnS50vKz4B7d; Sun, 2 Jun 2024 23:47:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717372044; 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=G4ciPALW4kkVPdLhZvg64aYwpX7EiVDhRWuW4yutOIo=; b=K3605/mUtiNbDOY9Kxr7pIJljIIEAymX2RLE9sIvHEJddctqozg6O0OxwMesbOhLICoOiR zffxSRLpXMUBmBvLn5eM7aewqOR/Til1kvab939K2HU7PniyEvIy0S2gJ6NJ+J9PfK5Pop p+AcGlZZFY74N5uIiaRKlvIIvoGBuDLAsmEQUF3O7A+kKEQoeaim1V+B5y042JSTQtQDt9 +D6ovWPdKg9I+IjEzZlcCl714LBUnloFizAMArz8tApkKt/+TeuOfVpGk5lB3SRx/JAOMv tQWXVnfIyzKN+fxQ3juX/jkPIXEf2iH6VU6G9yLBy8u4K3mvDWZ5ye+Ceek0jQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1717372044; a=rsa-sha256; cv=none; b=iaEUu0FL3/48vu90UOJwmjUm0HJTZYRb8nHjbBxPUueFSJ/PVhtocyIzDvfqoSkY+jT12l ip3UDs/ha4AP2lzxGt0jgbuenMJEQg67YfApG554EM3YWq0trRx8/ZzDqWoIZcIZ1I16mE Iuu0kgWNbdZ/5uXBor1S6KgDLj3qjoBIs3mKlUkxA2Ng6SoHmah3igHqY7r//UodtiPu0q p/souztkAtYKDBua04cS4DOgYvw5pZyaoKa9vFxaFrz+9gQmppRvnlUSPiCgFzMhIQQil6 7SUg1HZAahpYfmcFIUmq6v9ipUdFiBuIfDI0iumJB1Di1H1Q1iGAa9sn9ah1xg== 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=1717372044; 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=G4ciPALW4kkVPdLhZvg64aYwpX7EiVDhRWuW4yutOIo=; b=r+TiDXhT8CUTkJVVTUJ59TvaAscBgUoWHphI7KqqmceJVPJ0rhEITIabKyMmNvtOz234km k5gRw3GD0jGDHy/ul/aOr01xn+aZsPQQLOTL/2G41hQXcLtxlkR8fMHerLkD8z6w7cYwug 3FIKOTZ1ECrEy7ZNBC/PzT+o7r40+G+On3BD5W/5rD4mPz4jo8uZTcxAh8F0AbVuHaP+RP eufWZUDDk1v5dostDj7ITctMfqan2XO/NWab2qAa6SxvodeQQteHA93uTwm6bPTaNqcAFx GSEX+OCYREyOVkGP/GP2eXnxSpf4HbuaEs9s+srNOOqTzwpkpQo1EdeLaE+tWg== 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 4VstnS4Klcz1B34; Sun, 2 Jun 2024 23:47:24 +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 452NlO8a056851; Sun, 2 Jun 2024 23:47:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 452NlOjR056848; Sun, 2 Jun 2024 23:47:24 GMT (envelope-from git) Date: Sun, 2 Jun 2024 23:47:24 GMT Message-Id: <202406022347.452NlOjR056848@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: 66d2d42a1f26 - main - uart: 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: 66d2d42a1f26a6ef868d7d46f87d6fad0bc099aa Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=66d2d42a1f26a6ef868d7d46f87d6fad0bc099aa commit 66d2d42a1f26a6ef868d7d46f87d6fad0bc099aa Author: Mark Johnston AuthorDate: 2024-02-04 23:55:00 +0000 Commit: Mark Johnston CommitDate: 2024-06-02 23:38:41 +0000 uart: Use device_set_descf() No functional change intended. MFC after: 1 week --- sys/dev/uart/uart_dev_quicc.c | 4 +--- sys/dev/uart/uart_dev_z8530.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/sys/dev/uart/uart_dev_quicc.c b/sys/dev/uart/uart_dev_quicc.c index bd735f2da6f4..d6a8846b874e 100644 --- a/sys/dev/uart/uart_dev_quicc.c +++ b/sys/dev/uart/uart_dev_quicc.c @@ -412,7 +412,6 @@ quicc_bus_param(struct uart_softc *sc, int baudrate, int databits, static int quicc_bus_probe(struct uart_softc *sc) { - char buf[80]; int error; error = quicc_probe(&sc->sc_bas); @@ -422,8 +421,7 @@ quicc_bus_probe(struct uart_softc *sc) sc->sc_rxfifosz = 1; sc->sc_txfifosz = 1; - snprintf(buf, sizeof(buf), "quicc, channel %d", sc->sc_bas.chan); - device_set_desc_copy(sc->sc_dev, buf); + device_set_descf(sc->sc_dev, "quicc, channel %d", sc->sc_bas.chan); return (0); } diff --git a/sys/dev/uart/uart_dev_z8530.c b/sys/dev/uart/uart_dev_z8530.c index 2ca480a5690d..45bf63f20bb2 100644 --- a/sys/dev/uart/uart_dev_z8530.c +++ b/sys/dev/uart/uart_dev_z8530.c @@ -509,7 +509,6 @@ z8530_bus_param(struct uart_softc *sc, int baudrate, int databits, static int z8530_bus_probe(struct uart_softc *sc) { - char buf[80]; int error; char ch; @@ -522,8 +521,7 @@ z8530_bus_probe(struct uart_softc *sc) ch = sc->sc_bas.chan - 1 + 'A'; - snprintf(buf, sizeof(buf), "z8530, channel %c", ch); - device_set_desc_copy(sc->sc_dev, buf); + device_set_descf(sc->sc_dev, "z8530, channel %c", ch); return (0); }