[PATCH 2/4] Fix wrong balance of if/else blocks

Masatake YAMATO yamato at redhat.com
Fri Sep 3 20:28:41 UTC 2021


* src/time (printclockname): Add `{' and `}'.

Signed-off-by: Masatake YAMATO <yamato at redhat.com>
---
 src/time.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/time.c b/src/time.c
index 656e4bee1..f4a6a7539 100644
--- a/src/time.c
+++ b/src/time.c
@@ -246,10 +246,10 @@ printclockname(struct tcb *const tcp, int clockid)
 		if (xlat_verbose(xlat_verbosity) == XLAT_STYLE_VERBOSE)
 			tprint_comment_begin();
 
-		if ((clockid & CLOCKFD_MASK) == CLOCKFD)
+		if ((clockid & CLOCKFD_MASK) == CLOCKFD) {
 			tprints_arg_begin("FD_TO_CLOCKID");
 			PRINT_VAL_D(CLOCKID_TO_FD(clockid));
-		else {
+		} else {
 			tprints_arg_begin(CPUCLOCK_PERTHREAD(clockid) ?
 					  "MAKE_THREAD_CPUCLOCK" :
 					  "MAKE_PROCESS_CPUCLOCK");
-- 
2.31.1



More information about the Strace-devel mailing list