]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
LOG variadic: remove LOGLEVEL_VARIADIC [1 of 2]
authorOliver Kurth <okurth@vmware.com>
Tue, 17 Mar 2020 21:36:56 +0000 (14:36 -0700)
committerOliver Kurth <okurth@vmware.com>
Tue, 17 Mar 2020 21:36:56 +0000 (14:36 -0700)
Mass conversion is complete. It's time to remove the intermediate state.
[1/2]: remove LOGLEVEL_VARIADIC from loglevel_defs.h.  This removes the
backwards-compat path.

open-vm-tools/lib/include/loglevel_defs.h

index a06f63ffbebfe73a52f33f4c1a22cb8c8bbad9c6..40d7601aed32248bcb770fb6d3c132de569ce3ec 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 1998-2019 VMware, Inc. All rights reserved.
+ * Copyright (C) 1998-2020 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
@@ -87,7 +87,6 @@ int LogLevel_Set(const char *extension, const char *module, int val);
 #define DOLOG_BYNAME(_mod, _min) \
         UNLIKELY(LOGLEVEL_BYNAME(_mod) >= (_min))
 
-#ifdef LOGLEVEL_VARIADIC
 /*
  * Variadic macro wrinkle: C99 says "one or more arguments"; some compilers
  * (gcc+clang+msvc) support zero arguments, but differ in tolerating a trailing
@@ -102,11 +101,6 @@ int LogLevel_Set(const char *extension, const char *module, int val);
 #define LOG_BYNAME(_mod, _min, ...) \
         (DOLOG_BYNAME(_mod, _min) ? Log(__VA_ARGS__) : (void) 0)
 
-#else
-#define LOG_BYNAME(_mod, _min, _log) \
-        (DOLOG_BYNAME(_mod, _min) ? (Log _log) : (void) 0)
-#endif
-
 /*
  * Default
  */
@@ -130,11 +124,7 @@ int LogLevel_Set(const char *extension, const char *module, int val);
 
 
 #ifdef VMX86_DEVEL
-   #ifdef LOGLEVEL_VARIADIC
    #define LOG_DEVEL(...) Log(__VA_ARGS__)
-   #else
-   #define LOG_DEVEL(_x) (Log _x)
-   #endif
 #else
    #define LOG_DEVEL(...)
 #endif