From nobody Thu Jun 27 15:31:01 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 4W92b96Wjlz5PttX; Thu, 27 Jun 2024 15:31:01 +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 4W92b935ZRz4BnW; Thu, 27 Jun 2024 15:31:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719502261; 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=b8QvfAGbGFiQEfNsnqgylmSB9jOwMIlyiJD6EhSWvA4=; b=EbUUpTok7kU9dSaGAKWeCKoI9cpLqHVr1zyktlHYjH35pECwCmPuSk78OW9aPgG21a9tez dCni5jClxfK3ztnadMXKZWESW76wwQWv59tNOHpFiWElsXPr5pRqG/SfXDbzEoS2p/iTNu EqrDaOVKlMzLHQHUqnCLeDO4AXOAS/P0/gpONE5Xh19L6olbddsG2bED+TlD1f5kL3KveG 6hnkSp/WLuHrm67t8S8wwnKB7oIQa+njmiPPJuL0xcO4XXF1fPIcsO4z/GhAYsp/dIR/1Z dfFKBJdKGP0Bu0B/4my2XJxMf4nVIku6loHMTBtYPk7gKu2qWOixaR+kb8uyiQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719502261; a=rsa-sha256; cv=none; b=i6HwVFe66rBbt+NvIQJCE8CJJ3pmgH3iPl+1qMaGl0z5cV8XiCeHdV46oBrC5UhhJOs3jk Pv++g39TYXNOBOIn6PGlX5ZLfER6qEFx0mvAG16nw0yzDPMq9GZYJ4JEJGlxJMJJXhztoL fHVMqDxobyQq2eDWz5u0aCnn38C3M8UxhgZIIV7Q0KYozI63WSPNBmsiQPnSTeST0pNyYE 8lnYDdhxcMdNFHdF3jEcyYNz9jFHqSfvYSqSdPEtlDa1iHtyJDDSLzq6yHzzUqTqZ6s429 Q9oUT60bIIn+pSF4MrBE4IV4DveLj+c4KE70yhWFsTVSPuDLy3luihVD5YweMQ== 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=1719502261; 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=b8QvfAGbGFiQEfNsnqgylmSB9jOwMIlyiJD6EhSWvA4=; b=RLCpvgG4FgmvyTxsUff0tY1XodbWnET4hFV8bcge0tLQ7KWVIbNlR4SXm4UTScT/7urFU1 k+5z7gGXvliBXjJLs+OYyod3MUZntJTiu30V8SYU401ZWKsUJ/eYTKS8rE858e8f4H3i9Q QmG/GVgUQzUfSOiPgvIEfpxWktFFBdkscu08o7CRQ+BtaR6K11ZiQWTKRuVaOZaoNoXCn4 bDXZ9mstGP3GznEb7VXCKL9aWAHUK3Hh3Df8pSkOaD+e4ee7Iq+DXfxHXeI8a1pX7xCf3x lEHPOlJ4jHOC+i6tqxyhurnkJOxHpQuMA/+2ZFKMnn7/1pjaYW1I3aXmAQ8EPA== 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 4W92b92WbBzHpY; Thu, 27 Jun 2024 15:31:01 +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 45RFV1kQ078616; Thu, 27 Jun 2024 15:31:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45RFV1vU078613; Thu, 27 Jun 2024 15:31:01 GMT (envelope-from git) Date: Thu, 27 Jun 2024 15:31:01 GMT Message-Id: <202406271531.45RFV1vU078613@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: 50d188a80585 - stable/14 - wbwd: 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: 50d188a805851febb238f4fce82f9d7f98249edb Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=50d188a805851febb238f4fce82f9d7f98249edb commit 50d188a805851febb238f4fce82f9d7f98249edb Author: Mark Johnston AuthorDate: 2024-06-05 14:19:51 +0000 Commit: Mark Johnston CommitDate: 2024-06-27 15:27:41 +0000 wbwd: Use device_set_descf() No functional change intended. (cherry picked from commit eb634b9f4f48c29753e177f3340d03f73a75dbe5) --- sys/dev/wbwd/wbwd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/dev/wbwd/wbwd.c b/sys/dev/wbwd/wbwd.c index 4fe77c1874be..9aeaa2014eda 100644 --- a/sys/dev/wbwd/wbwd.c +++ b/sys/dev/wbwd/wbwd.c @@ -462,7 +462,6 @@ wb_watchdog_fn(void *private, u_int cmd, int *error) static int wb_probe(device_t dev) { - char buf[128]; struct wb_softc *sc; int j; uint8_t devid; @@ -479,10 +478,9 @@ wb_probe(device_t dev) for (j = 0; j < nitems(wb_devs); j++) { if (wb_devs[j].device_id == devid) { sc->chip = wb_devs[j].chip; - snprintf(buf, sizeof(buf), + device_set_descf(dev, "%s (0x%02x/0x%02x) Watchdog Timer", wb_devs[j].descr, devid, revid); - device_set_desc_copy(dev, buf); return (BUS_PROBE_SPECIFIC); } }