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 <marius.vlad@collabora.com>
Reported-by: Pekka Paalanen <pekka.paalanen@collabora.com>
2 jobs for fix-log-extensions in 1 minute and 31 seconds (queued for 1 second)
Status Job ID Name Coverage
  Container Prep
passed #477017
container_prep

00:00:36

 
  Build
passed #477018
build-native-meson

00:00:55