From 3b7ddc83d19e3ec114bfd5ed1e56ad8130c90e80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=AD=20Bol=C3=ADvar?= Date: Wed, 12 Feb 2020 22:25:00 -0800 Subject: [PATCH] scripts: gen_defines: tweak out_define() whitespace MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pad node identifiers to 60 characters. This results in better alignment in practice than the current value of 40, which is a bit low. Signed-off-by: Martí Bolívar --- scripts/dts/gen_defines.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dts/gen_defines.py b/scripts/dts/gen_defines.py index 4333dc48f3a..2cc1a3789ab 100755 --- a/scripts/dts/gen_defines.py +++ b/scripts/dts/gen_defines.py @@ -1139,7 +1139,7 @@ def out_define(ident, val, deprecation_msg, out_file): # out() helper for writing a #define. See out() for the meaning of # 'deprecation_msg'. - s = f"#define DT_{ident:40}" + s = f"#define DT_{ident:60}" if deprecation_msg: s += fr' __WARN("{deprecation_msg}")' s += f" {val}"