From nobody Thu Nov 16 17:56:28 2023 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 4SWSQN3nF2z50vvR; Thu, 16 Nov 2023 17:56:28 +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 4SWSQN3GJVz3Nmj; Thu, 16 Nov 2023 17:56:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700157388; 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=t966AiR7dyWaekkIhrKGqvaoP+LLY/SuVUsSXScK5YI=; b=x144Zl6vT/0baq+ogh2NWfYHOOcbh38Maa1UVRUZ4n5pxMlQGFjHK75MXV294S9NoOOed0 0SWhNVBL/ndbZL8pdo0uwIWemAAHoTf6BoR5grEkoZ+bXzEAkSM+X/2g/LXHDgmu0jpjFV cHz6+jINMO8FUmqYyp9OLjI7UXtNTReqqL4vvv6fPwRAQ0HMefBKl7+pJja3niqoaP309J JO8dfyY6FB9kuefCwJuAxqWShjBQz+69jUlQccolxBhZSiTGWH/sThCBSrejtcmlLPVbXJ 7lcCUeLrbwIR994uUJBeW53K8wz7egA8KvXqM8RRSstcbviwgPHV91+Kod8Jzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700157388; 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=t966AiR7dyWaekkIhrKGqvaoP+LLY/SuVUsSXScK5YI=; b=hQQOh5non4n5YOCcQQwmRl1SG3vuWZdBU4NiV3CFCB6cOArctonWg+CDRnF7365IuMRZxh 1e407t0MfB2XCj+KXCVeUoxRq9tckX+2kuYEkMnykCszPhdA329Jj7vBnEqUHdAFci3ugs 71UiNY6phEM4udBa1uBP1bpp+iEL63U7nTAV3IkynobefjIUmJCqG1yMBeZVU+8ABohU24 4C/yj+CC0ew/sfulmsZ8tgf4HqHUzw7OAZyBX0YrJ6myLQdd7LJnSI1G0kqyUbTKebqRp4 ZiWBqPv581BV9l0p/4BhZn3IX8Mtyf3RpbpQ7AXBpEhWr0eFpNaFByilaV1sdA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700157388; a=rsa-sha256; cv=none; b=bBdayy339bgsrMWV25G4CCUNEW84idcMHPanyUSS45M39usI/WpkYEn1lKl8685bfpT9uO Ik3ZbPxXGiB+0XepMuSzUsP3f/OgwEGtMe1ilHcv9kK3hSHV/yvmp6fH/A3WPfCSzvDVnR OyoEYIR9C1Gc/wl0wj3m48rBgEBomSab8XOwZasw13n3iGE/Nk/5a//DAj7mpEc3sscg9r x+pz7S7vhYqxtbfMTmf237TVihXza7ifp0tJCzbg9HTTUmpGOzEwTjY47Ahy/ogmQauWBp 3IO5fetf9izjIOohUk+DhVYypoX0LWjvMmJa0oJcAJHbgSZhPbhQ2ohyN5hCJg== 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 4SWSQN2Kssz18wh; Thu, 16 Nov 2023 17:56:28 +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 3AGHuS6m052731; Thu, 16 Nov 2023 17:56:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3AGHuSVQ052728; Thu, 16 Nov 2023 17:56:28 GMT (envelope-from git) Date: Thu, 16 Nov 2023 17:56:28 GMT Message-Id: <202311161756.3AGHuSVQ052728@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Jonathan T. Looney" Subject: git: 884eeff20ce9 - main - genoffset.sh: fix build break on MacOS 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: jtl X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 884eeff20ce91ff9fd5cd0a1766e094dcb15b463 Auto-Submitted: auto-generated The branch main has been updated by jtl: URL: https://cgit.FreeBSD.org/src/commit/?id=884eeff20ce91ff9fd5cd0a1766e094dcb15b463 commit 884eeff20ce91ff9fd5cd0a1766e094dcb15b463 Author: Jonathan T. Looney AuthorDate: 2023-11-16 17:45:02 +0000 Commit: Jonathan T. Looney CommitDate: 2023-11-16 17:54:28 +0000 genoffset.sh: fix build break on MacOS Switch from using the shell's builtin echo command to using the builtin printf command to print the asserts. Reported by: jrtc27 Suggested by: imp Fixes: accfb4cc9346 Sponsored by: Netflix --- sys/kern/genoffset.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/genoffset.sh b/sys/kern/genoffset.sh index c974a7d52e8c..25ed6ac7cb73 100644 --- a/sys/kern/genoffset.sh +++ b/sys/kern/genoffset.sh @@ -64,7 +64,7 @@ EOT echo "};" echo "#define _SA(s,f,o) _Static_assert(__builtin_offsetof(struct s ## _lite, f) == o, \\" printf '\t"struct "#s"_lite field "#f" not at offset "#o)\n' - echo -e "${asserts}\c" + printf "${asserts}" echo "#undef _SA" echo "#endif" echo "#endif"