From cf6e441ff5ad87670ba97aa8d5cbcd9a7cfaa68b Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 8 Jul 2021 03:13:14 +0200 Subject: [PATCH] api: log instance id when object file name is empty Signed-off-by: Jason A. Donenfeld --- api/adapter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/adapter.c b/api/adapter.c index 0fe902f..963f17d 100644 --- a/api/adapter.c +++ b/api/adapter.c @@ -228,7 +228,7 @@ static _Return_type_success_(return != NULL) WCHAR *GetDeviceObjectFileName(_In_ } if (!Interfaces[0]) { - LOG(WINTUN_LOG_ERR, L"Received empty adapter object file name"); + LOG(WINTUN_LOG_ERR, L"Received empty adapter %s object file name", InstanceId); Free(Interfaces); SetLastError(ERROR_DEVICE_NOT_AVAILABLE); return NULL;