From 612c82063013f0dcafb542589de4bfa0487ae1e1 Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Mon, 10 Oct 2016 13:25:47 -0700 Subject: [PATCH] tst: memfs: add -D option to specify debug log file --- tst/memfs/memfs-main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tst/memfs/memfs-main.c b/tst/memfs/memfs-main.c index 6b912d70..40cc8250 100644 --- a/tst/memfs/memfs-main.c +++ b/tst/memfs/memfs-main.c @@ -113,6 +113,8 @@ NTSTATUS SvcStart(FSP_SERVICE *Service, ULONG argc, PWSTR *argv) fail(L"cannot open debug log file"); goto usage; } + + FspDebugLogSetHandle(DebugLogHandle); } Result = MemfsCreate(Flags, FileInfoTimeout, MaxFileNodes, MaxFileSize, VolumePrefix, RootSddl, @@ -123,8 +125,6 @@ NTSTATUS SvcStart(FSP_SERVICE *Service, ULONG argc, PWSTR *argv) goto exit; } - if (INVALID_HANDLE_VALUE != DebugLogHandle) - FspDebugLogSetHandle(DebugLogHandle); FspFileSystemSetDebugLog(MemfsFileSystem(Memfs), DebugFlags); if (0 != MountPoint && L'\0' != MountPoint[0])