From nobody Fri Mar 08 14:10:03 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 4Trp3012mGz5DCv7; Fri, 8 Mar 2024 14:10:04 +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 4Trp300Zb3z4Ww0; Fri, 8 Mar 2024 14:10:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709907004; 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=USUF7jDuTrynFxX6uuu64aKbLHbwr0MziipJaJfB3mo=; b=hKz0z7s7WASbBuE7PU5OFwKrKoaEbd2owIchMmwpZKint95wGmGonL3tG7FV7XayZ6+7UT EuRK+6W8Q2sDgRIr9WH2hVRmLCJMiBqGx8pt3Xe/gmhcCc0p5fRA/RmBaq+mBcsur4JELQ l19y6uQO/NOg66srcIv+r9AlmmI/1XDfAUgjdslxRC0dQBNP0PFap6mtUP97nyHHE2vTKC qr/rA9+807lLRA6huHtu9sE7Vo+gRMwISNbyV4fAmz+bal6xd26Ac6Pux7VbnG7S0ZAx8J OZK6HE/hxhCvlbP1R6iYNuFbwwMJDVQ8OGjQbR1Mr9I2Awe2xJLTPdB9TLjpBg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709907004; a=rsa-sha256; cv=none; b=JPaheA1lccu6P0F2an5o/Z94mJ7N1VWN+1hENFUc5V/qc6tzk/WAKnsvxd10yToWPN1IVP F/5jwILG79ty6F8W1Hx/uYvpMXOssFuNmeG38apf5KnYOTNg58gBVHK++WhlGAi/fOS6rE KkldVI+yw/hHLHdXXAq71qqKaXx/9sGE1u6PGLHanNxj+tNwo344R5TjtkapZSJYkVn6yb PxF2tHe8OqlCoyOGjxkcNsaQ4d15WaoESaNXWFaQb4jhZmWnVndFq/sGE1ical0DNrv01L HcwtFWe+ApS54xBlyRWIObbZqTzghrP4kIuihJMy1casBCqByKiiMsDG0DuFyw== 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=1709907004; 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=USUF7jDuTrynFxX6uuu64aKbLHbwr0MziipJaJfB3mo=; b=QwUgufQaVTIQ3WvMudanZLHCGVVZKy18ttuikKs2ivSPch6ezQ70h6Cgv/TH+mXH4x9Y0y 5SHCO/lLFFc5AUED9iJx4J13aIEA4UBywss5u5ewlRBTo8fWjr5nQhwOinMMECAvNhWhYV Rjv6As47iFPDF27sR9sYdN9V+pGFcM9K63P0Z+z4BXERlf2SKI2vaUPOCWiqQp2PRM787J P8kvKnS4FmOXm1xMnigaPt3BAMnTGaQRo/f/B+gvlx7dT72gDblF5uPXnpjzL5JeTCYdqe AmgJxkLXtUwDtN9txgyI8+okTgYPvgi4f33ZEzZaugmiiQFB1jE2QJ7DgKxfRA== 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 4Trp3009mMzLLw; Fri, 8 Mar 2024 14:10:04 +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 428EA31U056821; Fri, 8 Mar 2024 14:10:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 428EA36G056817; Fri, 8 Mar 2024 14:10:03 GMT (envelope-from git) Date: Fri, 8 Mar 2024 14:10:03 GMT Message-Id: <202403081410.428EA36G056817@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mitchell Horne Subject: git: 6e66bb9fc3d0 - main - clk_fixed: call clkdom_dump() for verbose boot 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mhorne X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6e66bb9fc3d026765113fa1258cd12292da9309a Auto-Submitted: auto-generated The branch main has been updated by mhorne: URL: https://cgit.FreeBSD.org/src/commit/?id=6e66bb9fc3d026765113fa1258cd12292da9309a commit 6e66bb9fc3d026765113fa1258cd12292da9309a Author: Mitchell Horne AuthorDate: 2024-03-08 14:08:22 +0000 Commit: Mitchell Horne CommitDate: 2024-03-08 14:09:36 +0000 clk_fixed: call clkdom_dump() for verbose boot This is standard practice for clock drivers that register clocks dynamically. Nothing else uses the CLK_DEBUG macro. The result is that the name and frequency of the fixed clock is printed for a verbose boot, which may aid in debugging. Reviewed by: manu MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D44265 --- sys/dev/clk/clk_fixed.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/dev/clk/clk_fixed.c b/sys/dev/clk/clk_fixed.c index 647ca6a05568..3f828b24c2b2 100644 --- a/sys/dev/clk/clk_fixed.c +++ b/sys/dev/clk/clk_fixed.c @@ -258,9 +258,10 @@ clk_fixed_attach(device_t dev) rv = ENXIO; goto fail; } -#ifdef CLK_DEBUG - clkdom_dump(sc->clkdom); -#endif + + if (bootverbose) + clkdom_dump(sc->clkdom); + OF_prop_free(__DECONST(char *, def.clkdef.name)); OF_prop_free(def.clkdef.parent_names); return (bus_generic_attach(dev));