From 9246e00163ee10bcc0de1dbcb9443bdf40cff75d Mon Sep 17 00:00:00 2001 From: Quantum Date: Mon, 9 Aug 2021 02:44:36 -0400 Subject: [PATCH] [host] windows: use DEBUG_WINERROR for exit event opening code --- host/platform/Windows/src/platform.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/host/platform/Windows/src/platform.c b/host/platform/Windows/src/platform.c index 1f736c94..eb071f99 100644 --- a/host/platform/Windows/src/platform.c +++ b/host/platform/Windows/src/platform.c @@ -510,12 +510,15 @@ bool app_init(void) { exitEvent = OpenEvent(SYNCHRONIZE, FALSE, exitEventName); if (!exitEvent) - DEBUG_WARN("Failed to open exitEvent with error 0x%lx: %s", GetLastError(), exitEventName); + { + DEBUG_WINERROR("Failed to open exitEvent", GetLastError()); + DEBUG_INFO("Exit event name: %s", exitEventName); + } } if (!RegisterWaitForSingleObject(&app.exitWait, exitEvent, exitEventCallback, NULL, INFINITE, WT_EXECUTEONLYONCE)) - DEBUG_ERROR("Failed to create register wait for exit event: 0x%lx", GetLastError()); + DEBUG_WINERROR("Failed to create register wait for exit event", GetLastError()); return true; }