[Spice-devel] [PATCH spice-streaming-agent 1/4] Add some information to the log

Christophe Fergeau cfergeau at redhat.com
Thu Apr 26 09:47:25 UTC 2018


On Mon, Apr 23, 2018 at 04:07:41PM +0100, Frediano Ziglio wrote:
> Allows to track different frame timing.
> 
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
>  src/spice-streaming-agent.cpp | 15 +++++++++++++++
>  1 file changed, 15 insertions(+)
> 
> diff --git a/src/spice-streaming-agent.cpp b/src/spice-streaming-agent.cpp
> index 8b3f833..56c1582 100644
> --- a/src/spice-streaming-agent.cpp
> +++ b/src/spice-streaming-agent.cpp
> @@ -386,6 +386,12 @@ static void cursor_changes(Display *display, int event_base)
>      }
>  }
>  
> +#define STAT_LOG(format, ...) do { \
> +    if (f_log && !log_binary) { \
> +        fprintf(f_log, "%" PRIu64 ": " format "\n", get_time(), ## __VA_ARGS__); \
> +    } \
> +} while(0)

Wondering whether we'd want something less c/more c++ for this?

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20180426/f27632b8/attachment.sig>


More information about the Spice-devel mailing list