]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
More LOG() calls changed to variadic form - backdoor.c
authorOliver Kurth <okurth@vmware.com>
Wed, 22 Jan 2020 19:30:44 +0000 (11:30 -0800)
committerOliver Kurth <okurth@vmware.com>
Wed, 22 Jan 2020 19:30:44 +0000 (11:30 -0800)
open-vm-tools/lib/backdoor/backdoor.c

index 41012c9b7cc75a947a82dd368a771a4490b9af21..61b7cdef86e12d2679b06e40c295c359badec785 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 1999-2016 VMware, Inc. All rights reserved.
+ * Copyright (C) 1999-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
@@ -64,7 +64,7 @@ extern "C" {
 #   include "debug.h"
 #endif
 #   include <stdio.h>
-#   define BACKDOOR_LOG(args) Debug args
+#   define BACKDOOR_LOG(...) Debug(__VA_ARGS__)
 #   define BACKDOOR_LOG_PROTO_STRUCT(x) BackdoorPrintProtoStruct((x))
 #   define BACKDOOR_LOG_HB_PROTO_STRUCT(x) BackdoorPrintHbProtoStruct((x))
 
@@ -166,7 +166,7 @@ BackdoorPrintHbProtoStruct(Backdoor_proto_hb *myBp)
 }
 
 #else
-#   define BACKDOOR_LOG(args)
+#   define BACKDOOR_LOG(...)
 #   define BACKDOOR_LOG_PROTO_STRUCT(x)
 #   define BACKDOOR_LOG_HB_PROTO_STRUCT(x)
 #endif
@@ -205,7 +205,7 @@ Backdoor(Backdoor_proto *myBp) // IN/OUT
    myBp->in.ax.word = BDOOR_MAGIC;
    myBp->in.dx.halfs.low = BDOOR_PORT;
 
-   BACKDOOR_LOG(("Backdoor: before "));
+   BACKDOOR_LOG("Backdoor: before ");
    BACKDOOR_LOG_PROTO_STRUCT(myBp);
 
 #ifdef USE_VALGRIND
@@ -214,7 +214,7 @@ Backdoor(Backdoor_proto *myBp) // IN/OUT
    Backdoor_InOut(myBp);
 #endif
 
-   BACKDOOR_LOG(("Backdoor: after "));
+   BACKDOOR_LOG("Backdoor: after ");
    BACKDOOR_LOG_PROTO_STRUCT(myBp);
 }
 
@@ -252,7 +252,7 @@ Backdoor_HbOut(Backdoor_proto_hb *myBp) // IN/OUT
    myBp->in.ax.word = BDOOR_MAGIC;
    myBp->in.dx.halfs.low = BDOORHB_PORT;
 
-   BACKDOOR_LOG(("Backdoor_HbOut: before "));
+   BACKDOOR_LOG("Backdoor_HbOut: before ");
    BACKDOOR_LOG_HB_PROTO_STRUCT(myBp);
 
 #ifdef USE_VALGRIND
@@ -261,7 +261,7 @@ Backdoor_HbOut(Backdoor_proto_hb *myBp) // IN/OUT
    BackdoorHbOut(myBp);
 #endif
 
-   BACKDOOR_LOG(("Backdoor_HbOut: after "));
+   BACKDOOR_LOG("Backdoor_HbOut: after ");
    BACKDOOR_LOG_HB_PROTO_STRUCT(myBp);
 }
 
@@ -299,7 +299,7 @@ Backdoor_HbIn(Backdoor_proto_hb *myBp) // IN/OUT
    myBp->in.ax.word = BDOOR_MAGIC;
    myBp->in.dx.halfs.low = BDOORHB_PORT;
 
-   BACKDOOR_LOG(("Backdoor_HbIn: before "));
+   BACKDOOR_LOG("Backdoor_HbIn: before ");
    BACKDOOR_LOG_HB_PROTO_STRUCT(myBp);
 
 #ifdef USE_VALGRIND
@@ -308,7 +308,7 @@ Backdoor_HbIn(Backdoor_proto_hb *myBp) // IN/OUT
    BackdoorHbIn(myBp);
 #endif
 
-   BACKDOOR_LOG(("Backdoor_HbIn: after "));
+   BACKDOOR_LOG("Backdoor_HbIn: after ");
    BACKDOOR_LOG_HB_PROTO_STRUCT(myBp);
 }