Commit c1063d80 authored by Marius Vlad's avatar Marius Vlad

compositor: Return the number of bytes written as to format properly

Otherwise 'log_extensions()' will not know how to format the data.
Signed-off-by: Marius Vlad's avatarMarius Vlad <>
Reported-by: Pekka Paalanen's avatarPekka Paalanen <>
parent 6ebaa960
Pipeline #53968 passed with stages
in 1 minute and 31 seconds
......@@ -193,21 +193,22 @@ static int
vlog(const char *fmt, va_list ap)
char timestr[128];
int len = 0;
if (weston_log_scope_is_enabled(log_scope)) {
weston_log_scope_printf(log_scope, "%s ",
len = weston_log_scope_printf(log_scope, "%s ",
timestr, sizeof timestr));
weston_log_scope_vprintf(log_scope, fmt, ap);
len += weston_log_scope_vprintf(log_scope, fmt, ap);
return 0;
return len;
static int
vlog_continue(const char *fmt, va_list argp)
weston_log_scope_vprintf(log_scope, fmt, argp);
return weston_log_scope_vprintf(log_scope, fmt, argp);
return 0;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment