[Spice-devel] [PATCH spice-streaming-agent v2 2/9] Improve the frame log messages
Frediano Ziglio
fziglio at redhat.com
Wed Jun 27 14:18:40 UTC 2018
>
> Signed-off-by: Lukáš Hrázký <lhrazky at redhat.com>
> ---
> src/spice-streaming-agent.cpp | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/src/spice-streaming-agent.cpp b/src/spice-streaming-agent.cpp
> index 11796f3..be133e4 100644
> --- a/src/spice-streaming-agent.cpp
> +++ b/src/spice-streaming-agent.cpp
> @@ -344,9 +344,9 @@ do_capture(StreamPort &stream_port, FrameLog &frame_log)
> }
> uint64_t time_before = FrameLog::get_time();
>
> - frame_log.log_stat("Capturing...");
> + frame_log.log_stat("Capturing frame...");
> FrameInfo frame = capture->CaptureFrame();
> - frame_log.log_stat("Captured");
> + frame_log.log_stat("Captured frame");
>
> uint64_t time_after = FrameLog::get_time();
> syslog(LOG_DEBUG,
> @@ -366,11 +366,11 @@ do_capture(StreamPort &stream_port, FrameLog
> &frame_log)
> codec = capture->VideoCodecType();
>
> syslog(LOG_DEBUG, "wXh %uX%u codec=%u\n", width, height,
> codec);
> - frame_log.log_stat("Started new stream wXh %uX%u codec=%u",
> width, height, codec);
> + frame_log.log_stat("Started new stream wXh %uX%u codec=%u",
> width, height, codec);
>
> spice_stream_send_format(stream_port, width, height, codec);
> }
> - frame_log.log_stat("Frame of %zu bytes:", frame.buffer_size);
> + frame_log.log_stat("Frame of %zu bytes", frame.buffer_size);
> frame_log.log_frame(frame.buffer, frame.buffer_size);
>
> try {
> @@ -379,7 +379,7 @@ do_capture(StreamPort &stream_port, FrameLog &frame_log)
> syslog(e);
> break;
> }
> - frame_log.log_stat("Sent");
> + frame_log.log_stat("Sent frame");
>
> read_command(stream_port, false);
> }
Thanks for fixing my crap :-)
Acked-by: Frediano Ziglio <fziglio at redhat.com>
Frediano
More information about the Spice-devel
mailing list