scripts: gen_defines: tweak out_define() whitespace

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 <marti.bolivar@nordicsemi.no>
This commit is contained in:
Martí Bolívar 2020-02-12 22:25:00 -08:00 committed by Kumar Gala
commit 3b7ddc83d1

View file

@ -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}"