diff options
Diffstat (limited to 'src/vlib/log.c')
-rw-r--r-- | src/vlib/log.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/vlib/log.c b/src/vlib/log.c index 25d0c4d550c..8e205b9b74a 100644 --- a/src/vlib/log.c +++ b/src/vlib/log.c @@ -199,8 +199,9 @@ syslog: if (use_formatted_log_entry) { syslog (vlib_log_level_to_syslog_priority (level), "%.*s: %.*s", - vec_len (tmp), tmp, - vec_len (s) - (vec_c_string_is_terminated (s) ? 1 : 0), s); + (int) vec_len (tmp), tmp, + (int) (vec_len (s) - + (vec_c_string_is_terminated (s) ? 1 : 0)), s); } else { @@ -209,8 +210,8 @@ syslog: tmp = va_format (tmp, fmt, &va); va_end (va); syslog (vlib_log_level_to_syslog_priority (level), "%.*s", - vec_len (tmp) - (vec_c_string_is_terminated (tmp) ? 1 : 0), - tmp); + (int) (vec_len (tmp) - + (vec_c_string_is_terminated (tmp) ? 1 : 0)), tmp); } vec_free (tmp); } |