From 5a707272a054e677a0577cf136a089891d981a29 Mon Sep 17 00:00:00 2001 From: Alessandro Ambrosano Date: Tue, 21 Aug 2018 15:12:35 +0200 Subject: [PATCH] Tracepoints: fix ETW generator for pointers Fixes compilation failure on Windows, due to TraceLoggingValue not correctly casting pointer arguments to a known type. Change-Id: I6027debe4ea3440588dd8677209d6d47048b6b0f Reviewed-by: Giuseppe D'Angelo --- src/tools/tracegen/etw.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tools/tracegen/etw.cpp b/src/tools/tracegen/etw.cpp index 07f2d114b6..8c065f93c9 100644 --- a/src/tools/tracegen/etw.cpp +++ b/src/tools/tracegen/etw.cpp @@ -75,6 +75,9 @@ static void writeEtwMacro(QTextStream &stream, const Tracepoint::Field &field) << "TraceLoggingValue(" << name << ".width(), \"width\"), " << "TraceLoggingValue(" << name << ".height(), \"height\")"; return; + case Tracepoint::Field::Pointer: + stream << "TraceLoggingPointer(" << name << ", \"" << name << "\")"; + return; default: break; }