diff options
author | Simon Rozman <simon@rozman.si> | 2021-02-02 13:12:45 +0100 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2021-02-05 16:00:11 +0100 |
commit | 728d6762cd95394f2541d4a3f3e7fdd17ecd8f2a (patch) | |
tree | 6a055a600ed6e4e3b951fb0328a81166e729f00e /api/session.c | |
parent | api: tighten function parameter code analysis annotations (diff) | |
download | wintun-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.c | 2 |
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()) |