len = Str_Snprintf(fieldString, sizeof fieldString, "%s='%s'",
field->name, escapedString);
if (len == -1) {
- Warning("%s: Error: structured info field too large\n",
+ Warning("%s: Error: detailed data field too large\n",
__FUNCTION__);
memset(hostinfoCachedDetailedData, '\0',
sizeof hostinfoCachedDetailedData);
/* Add delimiter between properties */
if ((field + 1)->name != NULL) {
Str_Strcat(hostinfoCachedDetailedData,
- DETAILED_STRING_DELIMITER,
+ DETAILED_DATA_DELIMITER,
sizeof hostinfoCachedDetailedData);
}
}
&osReleaseFields[0],
distroSize, distro);
- /* These are used for the structured string. They can fail */
+ /* These are used for the detailed data. They can fail */
HostinfoReadDistroFile(TRUE, fileName, &osReleaseFields[1],
sizeof distroName, distroName);
HostinfoReadDistroFile(TRUE, fileName, &osReleaseFields[2],
}
#endif
- /* Build structured string */
+ /* Build detailed data */
HostinfoOSDetailedData();
return success;
******************************************************************************
* GuestInfoDetailedDataIsEqual --
*
- * Compares two HostinfoDetailedDataHeader and the structured string that
+ * Compares two HostinfoDetailedDataHeader and the detailed data that
* follows each header.
*
* @returns True if equal
******************************************************************************
* GuestInfoFreeDetailedData --
*
- * Free the HostinfoStructuredHeader and space allocated for the structured
- * string.
+ * Free the HostinfoStructuredHeader and space allocated for the detailed
+ * data.
*
* @returns None
*
}
if (detailedGosData == NULL) {
- g_message("No structured data.\n");
+ g_debug("No detailed data.\n");
sendOsNames = TRUE;
gSendDetailedGosData = FALSE;
} else {
- /* Build and attempt to send the structured data */
+ /* Build and attempt to send the detailed data */
HostinfoDetailedDataHeader *detailedDataHeader = NULL;
size_t infoHeaderSize;
size_t detailedGosDataLen;
size_t infoSize;
- g_message("Sending structured OS info.\n");
+ g_debug("Sending detailed data.\n");
detailedGosDataLen = strlen(detailedGosData);
infoHeaderSize = sizeof *detailedDataHeader;
infoSize = infoHeaderSize + detailedGosDataLen + 1; // cover NUL
detailedDataHeader = g_malloc(infoSize);
- /* Clear struct and memory allocated for structured string */
+ /* Clear struct and memory allocated for detailed data */
memset(detailedDataHeader, 0, infoSize);
- /* Set the version of the structured header used */
+ /* Set the version of the detailed data header used */
detailedDataHeader->version = HOSTINFO_STRUCT_HEADER_VERSION;
if (osName == NULL) {
gInfoCache.detailedData = detailedDataHeader;
g_debug("Detailed data was sent successfully.\n");
} else {
- /* Only send the OS Name if the VMX failed to receive the
- * structured OS info. */
+ /*
+ * Only send the OS Name if the VMX failed to receive the detailed
+ * data
+ */
gSendDetailedGosData = FALSE;
sendOsNames = TRUE;
g_debug("Detailed data was not sent successfully.\n");
}
if (!GuestInfoSendData(ctx, info, infoSize, INFO_OS_DETAILED)) {
- g_warning("Failed to update structured OS information.\n");
+ g_warning("Failed to update detailed data");
return FALSE;
}
break;