2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright (c) 2006, 2012, Oracle and/or its affiliates. All rights reserved. 2N/A/* 2 bytes for "0x" + 16 bytes for the hex value + 1 for sign + null */ 2N/A (
void)
fprintf(
fp,
" This topology map file was generated on " 2N/A * Special character escape sequences. 2N/A * Parse the string for special characters that must be 2N/A * escaped, and calculate the length of the new string. 2N/A * If the character is non-printable, replace it with '-'. 2N/A "%s: [%d]: special char=%c, newlen=%d\n",
2N/A * If no special characters were found just return, 2N/A * else allocate a new string. 2N/A * Replace any special characters with their escape sequences. 2N/A "%s: [%d]: special char=%c, newstr=%s\n",
2N/A * This does not generating proper XML arrays. 2N/A * Note that if we fix this then we must also fix the 2N/A * fabric translator module which parses the existing 2N/A * uint32_array property "assigned-addresses". 2N/A * Some enumerators create empty ranges: make sure there 2N/A * are real nodes before creating this range 2N/A "scheme=%s, uuid=%s, timestamp=%s=%s\n" 2N/A "system-mfg=%s, system-name=%s, system-part=%s, system-serial=%s\n" 2N/A "sys-comp-mfg=%s, sys-comp-name=%s, sys-comp-part=%s " 2N/A "sys-comp-serial=%s\nchassis-mfg=%s, chassis-name=%s " 2N/A "chassis-part=%s, chassis-serial=%s\n",