Change printf format string to include the extra blank

This is a follow up change to r364321 after a discussion about the style.
All near by places use extra blanks in format strings, and while use of the
format string to provide the extra blank may need more cycles than adding 1
to twidth, it generates shorter code and is clearer in the opinion of some
reviewers of the previous change.

Not objected to by:	emaste
MFC after:		3 days
This commit is contained in:
Stefan Eßer 2020-09-01 09:02:43 +00:00
parent 59ca674ef2
commit 0fa427fe19
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=365030

View file

@ -2199,7 +2199,7 @@ show_static_rule(struct cmdline_opts *co, struct format_opts *fo,
*strchr(timestr, '\n') = '\0';
bprintf(bp, "%s ", timestr);
} else {
bprintf(bp, "%*s", twidth + 1, " ");
bprintf(bp, "%*s ", twidth, "");
}
}