diff options
author | Simon Rozman <simon@rozman.si> | 2021-02-02 13:12:45 +0100 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2021-02-16 04:19:21 +0100 |
commit | bc5cde89160e706789ec9cdadd06be8127d086f9 (patch) | |
tree | 0d19fb46411441437ebd9fdab35489b6088dc368 /api/session.c | |
parent | api: tighten function parameter code analysis annotations (diff) | |
download | wintun-bc5cde89160e706789ec9cdadd06be8127d086f9.tar.xz wintun-bc5cde89160e706789ec9cdadd06be8127d086f9.zip |
api: upgrade logging0.10.2
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()) |