From nobody Sun Jun 16 20:37:58 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 4W2PwR3ZgFz5PRRf; Sun, 16 Jun 2024 20:37:59 +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 4W2PwR0vJCz3xD3; Sun, 16 Jun 2024 20:37:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718570279; 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=1tGW4vIf0YeQWGKSJqw+SoFlmgL/uoIq8qKwGrTsKg8=; b=CIWETs1wyy8z7B4ZhyP01NhxdUVRQXzG6Uv4Fqrs8fz/d/TYVOh4egy6ftSPhei/6j80B3 tghXn0YWciscK0RNgR/UxBC62Kbj/B+FuXc4uCDQ/G4SXQAR1e/OVfVTP2Kmdh/jL8ovLn CyFOQYDH2RQEdwBsbZzVz/q7q0aL2fuAr0s5v8fPNKG3pOeWt3VCgWnZLQvDYF4BeVoHuW xmKs8P6ZBujcCfo+Bq3ozMiqcpROiOIgZr2S0KQvD1NEvp/djYEk24pzO6ebUAuf7qs1i9 Ej32ojShFcRp6dx0lasCrZo+oZT54aluK2TZ07OVY5R0MAynTtbycK2Hh5pTyQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718570279; a=rsa-sha256; cv=none; b=c5qmJU09pd5EC6ZHxAYLkgSnDRL12iTvtBpfciVxFhDaPIUwOpzpZHaiMAWyvVsLdWSIld SSrlUWevv8RhqHOlRyjtjFBJ/dKTG9z8gs/D9RZJ6jK3/ABLt1fMHZmODzDJi+T23YfY5B ZysjjsNUUvBCflZaWtQFx91wdmTfF6VShn2Hf1dfuNAxoA0FbIkTcIUO2IVlzQQFF8aap/ jXx3wk9nL9sPJBOBknAkgcxzlGMqNgebBZqEmxegNHyYCqjaxGm1Q1KcSUiXc5YS2xnPjr XL3VFw7oh+v6BCIpgrLOFwEZWiScCyI4MO0pVjd8sYSi0RMejBZ1BCD2JJVEOA== 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=1718570279; 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=1tGW4vIf0YeQWGKSJqw+SoFlmgL/uoIq8qKwGrTsKg8=; b=E1qKHvOCMzWeaL3HIBi2eRfYc/u+PsLLAFo6jIrYk1p58sSWOBdNz3wWjytd0mbJA0S8RK 3/RRdk3rWzZeDw1gTIYwyDI1NRnks569ER5/lCHBCu9f4GTfceurL9/RZwKcMIVb37+DGe ktCsTnxtgk35i1RqX4S7lX1a4RoNT5eOJhD+rVaK+R2i0jbg4UkbQRNR2XoYa0Wj0C63yF o5tqnHXU1bM30JcTjh/AfYDlNpCeoIywjciHFVssel1bKgvBRob+Ltwzc4zvC0CszHzVrw ICzf+Kf02UvbdymIOQ9SmwRSKqVgW2cUGVMMStebXSVFjARVc9I3odbFireBRA== 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 4W2PwR0RGFz12yZ; Sun, 16 Jun 2024 20:37:59 +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 45GKbwnP079567; Sun, 16 Jun 2024 20:37:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45GKbw7g079564; Sun, 16 Jun 2024 20:37:58 GMT (envelope-from git) Date: Sun, 16 Jun 2024 20:37:58 GMT Message-Id: <202406162037.45GKbw7g079564@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: 50505c853c6c - main - bge: 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: 50505c853c6cf1a4e8fac54d20c43f0f91ff0c67 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=50505c853c6cf1a4e8fac54d20c43f0f91ff0c67 commit 50505c853c6cf1a4e8fac54d20c43f0f91ff0c67 Author: Mark Johnston AuthorDate: 2024-06-05 19:23:26 +0000 Commit: Mark Johnston CommitDate: 2024-06-16 20:37:26 +0000 bge: Use device_set_descf() No functional change intended. MFC after: 1 week --- sys/dev/bge/if_bge.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c index 15cd3b0df8e9..2662568c850a 100644 --- a/sys/dev/bge/if_bge.c +++ b/sys/dev/bge/if_bge.c @@ -2699,7 +2699,6 @@ bge_chipid(device_t dev) static int bge_probe(device_t dev) { - char buf[96]; char model[64]; const struct bge_revision *br; const char *pname; @@ -2727,9 +2726,8 @@ bge_probe(device_t dev) br != NULL ? br->br_name : "NetXtreme/NetLink Ethernet Controller"); } - snprintf(buf, sizeof(buf), "%s, %sASIC rev. %#08x", + device_set_descf(dev, "%s, %sASIC rev. %#08x", model, br != NULL ? "" : "unknown ", id); - device_set_desc_copy(dev, buf); return (BUS_PROBE_DEFAULT); } t++;