]> git.ipfire.org Git - thirdparty/systemd.git/commit
tools/elf2efi: align columns in tables, unify formatting
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 13 Mar 2024 12:16:17 +0000 (13:16 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 14 Mar 2024 09:32:17 +0000 (10:32 +0100)
commita0797b4ad79ec6f11700882eeea79e4366718dfe
treefca1df5f07ad5aa3049ebf6fc684da03279f60cd
parentaf02814a8556530fbaa91ed1c78551158da0632e
tools/elf2efi: align columns in tables, unify formatting

For tables which represent binary data structures, readability is greatly
enhanced if the part which shows field size and type is aligned. This follows
the usual style for tables in the rest of the systemd codebase.

Also, use the same style for functions: if the function signature is too long
to fit in one line, put each parameter on a separate line.

Also, for comprehension expressions, if they are split, use the usual Python
style.

Also, drop format annotations, since the code isn't automatically formatted
anymore, and automatic formatting is neither feasible nor a goal for the
systemd codebase.
tools/elf2efi.py