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 <giuseppe.dangelo@kdab.com>
This commit is contained in:
parent
ce267bbe37
commit
5a707272a0
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user