]> git.ipfire.org Git - thirdparty/grub.git/commit
util/grub-install-common: Minor improvements to printing of grub-mkimage command
authorGlenn Washburn <development@efficientek.com>
Fri, 22 Sep 2023 19:34:17 +0000 (14:34 -0500)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 3 Oct 2023 13:35:24 +0000 (15:35 +0200)
commit1c2e1623068719941963dc34da6f927bafdbdbec
tree1f2f071e6e567085a02913f185224c84ade0a9df
parent968928240a632483aea8550d3fad535eb7176625
util/grub-install-common: Minor improvements to printing of grub-mkimage command

This is a preparatory patch to make the following patch less cluttered. The
only visible change made here is to not print extra spaces when either or
both --note or --disable-shim-lock are not given and to not print an extra
space at the end of the command. The latter is done by constructing the
trailing argument string with spaces in front of each argument rather than
trailing. The allocation of the argument string is made precise, which has
the benefit of saving a few bytes, but more importantly self-documenting
what the needed allocated bytes are. Also, unneeded braces are removed from
an if block.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
util/grub-install-common.c