Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 May 2021 00:33:52 GMT
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 0bd5d81f1edf - stable/13 - makesyscalls.lua: improve generated file style(9) compliance
Message-ID:  <202105200033.14K0XqQI054511@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=0bd5d81f1edf9810568d2403cf83f0fbf8adacb7

commit 0bd5d81f1edf9810568d2403cf83f0fbf8adacb7
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2021-05-12 20:11:44 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2021-05-20 00:31:54 +0000

    makesyscalls.lua: improve generated file style(9) compliance
    
    We generally like to avoid style changes when other changes are not
    planned.  In this case there are some makesyscalls.lua changes in the
    pipeline, and this cleans up style nits in generated files that were
    highlighted by experiments with clang-format.
    
    Reviewed by:    brooks, kevans
    MFC after:      1 week
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D30235
    
    (cherry picked from commit ad385f7b46e7636b11fb0fd56bc42b60b06b16ad)
---
 sys/tools/makesyscalls.lua | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sys/tools/makesyscalls.lua b/sys/tools/makesyscalls.lua
index e225e9f7ebbe..acae55050752 100644
--- a/sys/tools/makesyscalls.lua
+++ b/sys/tools/makesyscalls.lua
@@ -647,7 +647,7 @@ local function handle_noncompat(sysnum, thr_flag, flags, sysflags, rettype,
 ]], funcname, sysnum))
 
 	if #funcargs > 0 then
-		write_line("systracetmp", "\t\tswitch(ndx) {\n")
+		write_line("systracetmp", "\t\tswitch (ndx) {\n")
 		write_line("systrace", string.format(
 		    "\t\tstruct %s *p = params;\n", argalias))
 
@@ -670,7 +670,7 @@ local function handle_noncompat(sysnum, thr_flag, flags, sysflags, rettype,
 
 			if isptrtype(argtype) then
 				write_line("systrace", string.format(
-				    "\t\tuarg[%d] = (%s) p->%s; /* %s */\n",
+				    "\t\tuarg[%d] = (%s)p->%s; /* %s */\n",
 				    idx - 1, config["ptr_intptr_t_cast"],
 				    argname, argtype))
 			elseif argtype == "union l_semun" then
@@ -1278,7 +1278,7 @@ write_line("systrace", string.format([[/*
 static void
 systrace_args(int sysnum, void *params, uint64_t *uarg, int *n_args)
 {
-	int64_t *iarg  = (int64_t *) uarg;
+	int64_t *iarg = (int64_t *)uarg;
 	switch (sysnum) {
 ]], generated_tag, config['os_id_keyword']))
 
@@ -1309,7 +1309,7 @@ for _, v in pairs(compat_options) do
 		write_line("sysinc", string.format([[
 
 #ifdef %s
-#define %s(n, name) .sy_narg = n, .sy_call = (sy_call_t *)__CONCAT(%s,name)
+#define %s(n, name) .sy_narg = n, .sy_call = (sy_call_t *)__CONCAT(%s, name)
 #else
 #define %s(n, name) .sy_narg = 0, .sy_call = (sy_call_t *)nosys
 #endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105200033.14K0XqQI054511>