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:
parent
59ca674ef2
commit
0fa427fe19
@ -2199,7 +2199,7 @@ show_static_rule(struct cmdline_opts *co, struct format_opts *fo,
|
|||||||
*strchr(timestr, '\n') = '\0';
|
*strchr(timestr, '\n') = '\0';
|
||||||
bprintf(bp, "%s ", timestr);
|
bprintf(bp, "%s ", timestr);
|
||||||
} else {
|
} else {
|
||||||
bprintf(bp, "%*s", twidth + 1, " ");
|
bprintf(bp, "%*s ", twidth, "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user