]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Backout previous change.
authorVMware, Inc <>
Tue, 26 Apr 2011 21:22:47 +0000 (14:22 -0700)
committerMarcelo Vanzin <mvanzin@vmware.com>
Tue, 26 Apr 2011 21:22:47 +0000 (14:22 -0700)
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/lib/include/log.h

index 670b7ec32d5dde153eb48ef802053ce87d3bac83..b6704ba684ac379114922bd8d2f9f6c14c2566f0 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 1998-2011 VMware, Inc. All rights reserved.
+ * Copyright (C) 1998 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
 
 #define VMW_LOG_BASE      100
 #define VMW_LOG_PANIC     VMW_LOG_BASE +  0  // highest priority
-#define VMW_LOG_ERROR     VMW_LOG_BASE +  5
-#define VMW_LOG_WARNING   VMW_LOG_BASE + 10  // <= goes to stderr by default
-#define VMW_LOG_AUDIT     VMW_LOG_BASE + 15  // *ALWAYS* output to the log
-#define VMW_LOG_INFO      VMW_LOG_BASE + 20  // <= goes to log by default
-#define VMW_LOG_VERBOSE   VMW_LOG_BASE + 25
-#define VMW_LOG_TRIVIA    VMW_LOG_BASE + 30
-#define VMW_LOG_DEBUG_00  VMW_LOG_BASE + 35  // noisiest level of debugging
-#define VMW_LOG_DEBUG_01  VMW_LOG_DEBUG_00 +  1
-#define VMW_LOG_DEBUG_02  VMW_LOG_DEBUG_00 +  2
-#define VMW_LOG_DEBUG_03  VMW_LOG_DEBUG_00 +  3
-#define VMW_LOG_DEBUG_04  VMW_LOG_DEBUG_00 +  4
-#define VMW_LOG_DEBUG_05  VMW_LOG_DEBUG_00 +  5
-#define VMW_LOG_DEBUG_06  VMW_LOG_DEBUG_00 +  6
-#define VMW_LOG_DEBUG_07  VMW_LOG_DEBUG_00 +  7
-#define VMW_LOG_DEBUG_08  VMW_LOG_DEBUG_00 +  8
-#define VMW_LOG_DEBUG_09  VMW_LOG_DEBUG_00 +  9
-#define VMW_LOG_DEBUG_10  VMW_LOG_DEBUG_00 + 10  // lowest priority; least noisy
+#define VMW_LOG_ERROR     VMW_LOG_BASE +  1
+#define VMW_LOG_WARNING   VMW_LOG_BASE +  2  // <= goes to stderr by default
+#define VMW_LOG_INFO      VMW_LOG_BASE +  3  // <= goes to log by default
+#define VMW_LOG_VERBOSE   VMW_LOG_BASE +  4
+#define VMW_LOG_TRIVIA    VMW_LOG_BASE +  5
+#define VMW_LOG_DEBUG_00  VMW_LOG_BASE +  6  // noisiest level of debugging
+#define VMW_LOG_DEBUG_01  VMW_LOG_BASE +  7
+#define VMW_LOG_DEBUG_02  VMW_LOG_BASE +  8
+#define VMW_LOG_DEBUG_03  VMW_LOG_BASE +  9
+#define VMW_LOG_DEBUG_04  VMW_LOG_BASE + 10
+#define VMW_LOG_DEBUG_05  VMW_LOG_BASE + 11
+#define VMW_LOG_DEBUG_06  VMW_LOG_BASE + 12
+#define VMW_LOG_DEBUG_07  VMW_LOG_BASE + 13
+#define VMW_LOG_DEBUG_08  VMW_LOG_BASE + 14
+#define VMW_LOG_DEBUG_09  VMW_LOG_BASE + 15
+#define VMW_LOG_DEBUG_10  VMW_LOG_BASE + 16  // lowest priority; least noisy
 
 void
 LogVNoRoute(int rawLevel,
@@ -107,18 +106,6 @@ Log_Panic(const char *fmt,
 }
 
 
-static INLINE void PRINTF_DECL(1, 2)
-Log_Audit(const char *fmt,
-          ...)
-{
-   va_list ap;
-
-   va_start(ap, fmt);
-   LogV(VMW_LOG_AUDIT, fmt, ap);  // HEY! Security staff, look at this!
-   va_end(ap);
-}
-
-
 static INLINE void PRINTF_DECL(1, 2)
 Log_Error(const char *fmt,
           ...)