Acked-by: Mark Michelson <[email protected]>
Tested-by: Mark Michelson <[email protected]>

On 02/23/2018 09:30 PM, zhangliping wrote:
From: zhangliping <[email protected]>

If the format specifier does not have the 0 flag, we should pad with
blanks instead of zeroes.

Signed-off-by: zhangliping <[email protected]>
---
  lib/vlog.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/vlog.c b/lib/vlog.c
index f28695043..0e862a773 100644
--- a/lib/vlog.c
+++ b/lib/vlog.c
@@ -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 != '%') {


_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to