Prior logging indicates an issue when reading back from disk, so
tweak the logging to report the count# (since SuperFgets doesn't log
null terminators) of bytes and add a log to Dictionary_WriteFile to log
the last 100 bytes of the buffer.
/*********************************************************
- * Copyright (C) 1998-2017 VMware, Inc. All rights reserved.
+ * Copyright (C) 1998-2018 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
StdIO_Success,
} StdIO_Status;
-typedef void (*SnowMotionLogger)(char *buf);
+typedef void (*SnowMotionLogger)(char *buf, size_t count);
void
StdIO_ToggleSnowMotionLogging(SnowMotionLogger logger);
*count = size;
if (snowMotionLogger != NULL) {
- snowMotionLogger(buf);
+ snowMotionLogger(buf, *count);
}
return buf;