The behavior to set sep brings trouble to modification later, the logic is not changed by add tailing space in fprintf().
Signed-off-by: Wenchao Xia <xiaw...@linux.vnet.ibm.com> --- util/qemu-error.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/util/qemu-error.c b/util/qemu-error.c index 0ccd3e9..d1e858a 100644 --- a/util/qemu-error.c +++ b/util/qemu-error.c @@ -161,8 +161,7 @@ static void error_print_loc(void) const char *const *argp; if (!cur_mon && progname) { - fprintf(stderr, "%s:", progname); - sep = " "; + fprintf(stderr, "%s: ", progname); } switch (cur_loc->kind) { case LOC_CMDLINE: @@ -181,7 +180,7 @@ static void error_print_loc(void) error_printf(" "); break; default: - error_printf("%s", sep); + break; } } -- 1.7.1