aboutsummaryrefslogtreecommitdiffstats
path: root/api/session.c
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2021-02-02 13:12:45 +0100
committerSimon Rozman <simon@rozman.si>2021-02-05 16:00:11 +0100
commit728d6762cd95394f2541d4a3f3e7fdd17ecd8f2a (patch)
tree6a055a600ed6e4e3b951fb0328a81166e729f00e /api/session.c
parentapi: tighten function parameter code analysis annotations (diff)
downloadwintun-728d6762cd95394f2541d4a3f3e7fdd17ecd8f2a.tar.xz
wintun-728d6762cd95394f2541d4a3f3e7fdd17ecd8f2a.zip
api: upgrade logging
Log runtime information to quickly check whether the values are sane when analyzing error logs sent in by users. Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to '')
-rw-r--r--api/session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/session.c b/api/session.c
index c522ed9..ef65214 100644
--- a/api/session.c
+++ b/api/session.c
@@ -83,7 +83,7 @@ _Return_type_success_(return != NULL) TUN_SESSION *WINAPI
BYTE *AllocatedRegion = VirtualAlloc(0, (size_t)RingSize * 2, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE);
if (!AllocatedRegion)
{
- LastError = LOG_LAST_ERROR(L"Failed to allocate ring memory");
+ LastError = LOG_LAST_ERROR(L"Failed to allocate ring memory (requested size: 0x%zx)", (size_t)RingSize * 2);
goto cleanupRings;
}
if (!ElevateToSystem())