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@xxxxxxxxxx> > --- > 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
Attachment:
signature.asc
Description: PGP signature
_______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel