]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Changes to common header files not applicable to open-vm-tools.
authorJohn Wolfe <jwolfe@vmware.com>
Fri, 31 Jul 2020 20:36:35 +0000 (13:36 -0700)
committerJohn Wolfe <jwolfe@vmware.com>
Fri, 31 Jul 2020 20:36:35 +0000 (13:36 -0700)
open-vm-tools/lib/include/vmstdio.h
open-vm-tools/lib/misc/vmstdio.c

index 6102c8e10a40a050dbdfe82ad7a443c401e8cb3d..f0328bc8e30f1348f26a2e689dd698ff01708b75 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
@@ -37,11 +37,6 @@ typedef enum {
    StdIO_Success,
 } StdIO_Status;
 
-typedef void (*SnowMotionLogger)(char *buf, size_t count);
-
-void
-StdIO_ToggleSnowMotionLogging(SnowMotionLogger logger);
-
 StdIO_Status
 StdIO_ReadNextLine(FILE *stream,         // IN
                    char **buf,           // OUT
index 22a8f38612082b96372eebd7fea5f90ca645b9d2..0b01330ad6b1eb8ff21209ca25d0fd5b04d842fd 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
 #include "posixInt.h"
 
 
-static SnowMotionLogger snowMotionLogger = NULL;
-
-/*
- *-----------------------------------------------------------------------------
- *
- * StdIO_ToggleSnowMotionLogging --
- *
- *    SnowMotion-specific log toggling - as per PR#2121674 and 2108730, vmx
- *    corruption appears to occur at some arbitrary point prior to VM powerOn,
- *    but only in CAT - it has not been reproducible locally or via manually
- *    triggered Nimbus testruns.
- *
- *    To try to isolate the corruption point, add a toggled logging mechanism
- *    that will dump the results of SuperFGets for the interval between
- *    main initializing and VM powerOn.
- *
- *    This is a strictly temporary mechanism to provide the necessary logging
- *    to debug this issue.
- *
- *-----------------------------------------------------------------------------
- */
-
-void
-StdIO_ToggleSnowMotionLogging(SnowMotionLogger logger)   // IN:
-{
-   snowMotionLogger = logger;
-}
-
-
 /*
  *-----------------------------------------------------------------------------
  *
@@ -165,10 +136,6 @@ SuperFgets(FILE *stream,   // IN:
 
    *count = size;
 
-   if (snowMotionLogger != NULL) {
-      snowMotionLogger(buf, *count);
-   }
-
    return buf;
 }