git: 884eeff20ce9 - main - genoffset.sh: fix build break on MacOS
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 16 Nov 2023 17:56:28 UTC
The branch main has been updated by jtl:
URL: https://cgit.FreeBSD.org/src/commit/?id=884eeff20ce91ff9fd5cd0a1766e094dcb15b463
commit 884eeff20ce91ff9fd5cd0a1766e094dcb15b463
Author: Jonathan T. Looney <jtl@FreeBSD.org>
AuthorDate: 2023-11-16 17:45:02 +0000
Commit: Jonathan T. Looney <jtl@FreeBSD.org>
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"