142 {
143#if DBG
145
146#define TEMP_BUFFER_SIZE 1024
149#ifdef __REACTOS__
150#define FORMAT_BUFFER_SIZE 512
152#endif
154
156
157 if (DebugMessage) {
158
159#ifdef __REACTOS__
160 FxTraceTranslateFormat(DebugMessage,
161 formatBuffer,
162 sizeof(formatBuffer));
163#endif
164
165
166
167
168
169
170#if FX_CORE_MODE==FX_CORE_KERNEL_MODE
172 sizeof(debugMessageBuffer),
173#ifdef __REACTOS__
174 formatBuffer,
175#else
176 DebugMessage,
177#endif
179#else
182 sizeof(debugMessageBuffer),
183#ifdef __REACTOS__
184 formatBuffer,
185#else
186 DebugMessage,
187#endif
189
190
192 {
194 }
195 else
196 {
198 }
199#endif
200#ifdef __REACTOS__
202#else
204#endif
205
206#if FX_CORE_MODE==FX_CORE_KERNEL_MODE
208#else
210#ifdef __REACTOS__
212#else
214#endif
215#endif
216#ifdef __REACTOS__
218#endif
219 return;
220 }
223 ((DebugPrintFlag &
DebugFlag) == DebugPrintFlag))) {
224#if FX_CORE_MODE==FX_CORE_KERNEL_MODE
225 DbgPrint(
"WDFTrace: %s\n", debugMessageBuffer);
226#else
228#ifdef __REACTOS__
230#else
232#endif
233#endif
234 }
235 }
237
238 return;
239#else
244#endif
245}
#define NT_SUCCESS(StatCode)
NTSTATUS WinErrorToNtStatus(__in ULONG WinError)
#define FORMAT_BUFFER_SIZE
#define UNREFERENCED_PARAMETER(P)
NTSTRSAFEAPI RtlStringCbVPrintfA(_Out_writes_bytes_(cbDest) _Always_(_Post_z_) NTSTRSAFE_PSTR pszDest, _In_ size_t cbDest, _In_ _Printf_format_string_ NTSTRSAFE_PCSTR pszFormat, _In_ va_list argList)
#define STATUS_BUFFER_OVERFLOW
#define TRACE_LEVEL_ERROR
STRSAFEAPI StringCbVPrintfA(STRSAFE_LPSTR pszDest, size_t cbDest, STRSAFE_LPCSTR pszFormat, va_list argList)
#define STATUS_UNSUCCESSFUL
#define OutputDebugString
#define HRESULT_FACILITY(hr)