]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Common source file change not directly applicable to open-vm-tools.
authorOliver Kurth <okurth@vmware.com>
Mon, 3 Jun 2019 20:39:44 +0000 (13:39 -0700)
committerOliver Kurth <okurth@vmware.com>
Mon, 3 Jun 2019 20:39:44 +0000 (13:39 -0700)
open-vm-tools/lib/panic/panic.c

index d91f47684319ab98a93004130624a499709b65ec..ff3a5d930f7be57cca45d9d3ae0ffdef68179183 100644 (file)
@@ -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