]> 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 efc9b86b6347f4e793e626c2fbeedbcd1dca35b2..d91f47684319ab98a93004130624a499709b65ec 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2006-2018 VMware, Inc. All rights reserved.
+ * Copyright (C) 2006-2019 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -540,8 +540,8 @@ Panic_Panic(const char *format,
     * panic loop detection.  In particular, try not to call
     * any of our functions (that may call Panic()).
     */
-
    fputs(buf, stderr);
+
 #ifdef _WIN32
    /*
     * This would nominally be Win32U_OutputDebugString.  However,
@@ -555,11 +555,6 @@ Panic_Panic(const char *format,
    OutputDebugStringA(buf);
 #endif
 
-   /*
-    * Make sure Panic gets logged
-    */
-   Log_DisableThrottling();
-
    /*
     * Panic loop detection:
     *   first time - do the whole report and shutdown sequence
@@ -569,6 +564,7 @@ Panic_Panic(const char *format,
 
    switch (count++) {
    case 0:
+      Log_DisableThrottling(); // Make sure Panic gets logged
       break;
    case 1:
       Log("PANIC: %s", buf);