[CRIU] [PATCH 2/3] show: Always print tabs before braces

Pavel Emelyanov xemul at parallels.com
Thu Jul 10 06:09:15 PDT 2014


Currently left brace is always left-aligned, which makes reading of
nested structures quite hard.

Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
 protobuf.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/protobuf.c b/protobuf.c
index e7a4e64..9fe6964 100644
--- a/protobuf.c
+++ b/protobuf.c
@@ -96,8 +96,7 @@ static inline void print_tabs(pb_pr_ctl_t *ctl)
 
 static void print_nested_message_braces(pb_pr_ctl_t *ctl, int right_brace)
 {
-	if (right_brace)
-		print_tabs(ctl);
+	print_tabs(ctl);
 	pr_msg("%s%s", (right_brace) ? "}" : "{", (ctl->single_entry) ? "\n" : " ");
 }
 
-- 
1.8.4.2




More information about the CRIU mailing list