From: Oliver Kurth Date: Mon, 3 Jun 2019 20:39:44 +0000 (-0700) Subject: Common source file change not directly applicable to open-vm-tools. X-Git-Tag: stable-11.0.0~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3f8ffec4a1de47cb62e4d8b2ba175a03da13246;p=thirdparty%2Fopen-vm-tools.git Common source file change not directly applicable to open-vm-tools. --- diff --git a/open-vm-tools/lib/panic/panic.c b/open-vm-tools/lib/panic/panic.c index d91f47684..ff3a5d930 100644 --- a/open-vm-tools/lib/panic/panic.c +++ b/open-vm-tools/lib/panic/panic.c @@ -562,9 +562,8 @@ Panic_Panic(const char *format, * beyond second time - just exit */ - switch (count++) { - case 0: - Log_DisableThrottling(); // Make sure Panic gets logged + switch (count++) { // Try HARD to not put code in here! + case 0: // case 0 stuff is below break; case 1: Log("PANIC: %s", buf); @@ -575,6 +574,8 @@ Panic_Panic(const char *format, NOT_REACHED(); } + Log_DisableThrottling(); // Make sure Panic gets logged + #ifdef _WIN32 /* * Output again, in a way that we hope localizes correctly. Since