vlog: fix the incorrect zero padding in format_log_message
If the format specifier does not have the 0 flag, we should pad with
blanks instead of zeroes.
Acked-by: Mark Michelson
Tested-by: Mark Michelson
@@ -952,7 +952,7 @@ format_log_message(const struct vlog_module *module, enum vlog_level level,
for (p = pattern; *p != '\0'; ) {
const char *subprogram_name;
enum { LEFT, RIGHT } justify = RIGHT;
- int pad = '0';
+ int pad = ' ';
size_t length, field, used;
if (*p != '%') {
