1*385cc6b4SJerry Jelinek /****************************************************************************** 2*385cc6b4SJerry Jelinek * 3*385cc6b4SJerry Jelinek * Module Name: utbuffer - Buffer dump routines 4*385cc6b4SJerry Jelinek * 5*385cc6b4SJerry Jelinek *****************************************************************************/ 6*385cc6b4SJerry Jelinek 7*385cc6b4SJerry Jelinek /* 8*385cc6b4SJerry Jelinek * Copyright (C) 2000 - 2016, Intel Corp. 9*385cc6b4SJerry Jelinek * All rights reserved. 10*385cc6b4SJerry Jelinek * 11*385cc6b4SJerry Jelinek * Redistribution and use in source and binary forms, with or without 12*385cc6b4SJerry Jelinek * modification, are permitted provided that the following conditions 13*385cc6b4SJerry Jelinek * are met: 14*385cc6b4SJerry Jelinek * 1. Redistributions of source code must retain the above copyright 15*385cc6b4SJerry Jelinek * notice, this list of conditions, and the following disclaimer, 16*385cc6b4SJerry Jelinek * without modification. 17*385cc6b4SJerry Jelinek * 2. Redistributions in binary form must reproduce at minimum a disclaimer 18*385cc6b4SJerry Jelinek * substantially similar to the "NO WARRANTY" disclaimer below 19*385cc6b4SJerry Jelinek * ("Disclaimer") and any redistribution must be conditioned upon 20*385cc6b4SJerry Jelinek * including a substantially similar Disclaimer requirement for further 21*385cc6b4SJerry Jelinek * binary redistribution. 22*385cc6b4SJerry Jelinek * 3. Neither the names of the above-listed copyright holders nor the names 23*385cc6b4SJerry Jelinek * of any contributors may be used to endorse or promote products derived 24*385cc6b4SJerry Jelinek * from this software without specific prior written permission. 25*385cc6b4SJerry Jelinek * 26*385cc6b4SJerry Jelinek * Alternatively, this software may be distributed under the terms of the 27*385cc6b4SJerry Jelinek * GNU General Public License ("GPL") version 2 as published by the Free 28*385cc6b4SJerry Jelinek * Software Foundation. 29*385cc6b4SJerry Jelinek * 30*385cc6b4SJerry Jelinek * NO WARRANTY 31*385cc6b4SJerry Jelinek * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 32*385cc6b4SJerry Jelinek * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 33*385cc6b4SJerry Jelinek * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR 34*385cc6b4SJerry Jelinek * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 35*385cc6b4SJerry Jelinek * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 36*385cc6b4SJerry Jelinek * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 37*385cc6b4SJerry Jelinek * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 38*385cc6b4SJerry Jelinek * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 39*385cc6b4SJerry Jelinek * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 40*385cc6b4SJerry Jelinek * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 41*385cc6b4SJerry Jelinek * POSSIBILITY OF SUCH DAMAGES. 42*385cc6b4SJerry Jelinek */ 43*385cc6b4SJerry Jelinek 44*385cc6b4SJerry Jelinek #include "acpi.h" 45*385cc6b4SJerry Jelinek #include "accommon.h" 46*385cc6b4SJerry Jelinek 47*385cc6b4SJerry Jelinek #define _COMPONENT ACPI_UTILITIES 48*385cc6b4SJerry Jelinek ACPI_MODULE_NAME ("utbuffer") 49*385cc6b4SJerry Jelinek 50*385cc6b4SJerry Jelinek 51*385cc6b4SJerry Jelinek /******************************************************************************* 52*385cc6b4SJerry Jelinek * 53*385cc6b4SJerry Jelinek * FUNCTION: AcpiUtDumpBuffer 54*385cc6b4SJerry Jelinek * 55*385cc6b4SJerry Jelinek * PARAMETERS: Buffer - Buffer to dump 56*385cc6b4SJerry Jelinek * Count - Amount to dump, in bytes 57*385cc6b4SJerry Jelinek * Display - BYTE, WORD, DWORD, or QWORD display: 58*385cc6b4SJerry Jelinek * DB_BYTE_DISPLAY 59*385cc6b4SJerry Jelinek * DB_WORD_DISPLAY 60*385cc6b4SJerry Jelinek * DB_DWORD_DISPLAY 61*385cc6b4SJerry Jelinek * DB_QWORD_DISPLAY 62*385cc6b4SJerry Jelinek * BaseOffset - Beginning buffer offset (display only) 63*385cc6b4SJerry Jelinek * 64*385cc6b4SJerry Jelinek * RETURN: None 65*385cc6b4SJerry Jelinek * 66*385cc6b4SJerry Jelinek * DESCRIPTION: Generic dump buffer in both hex and ascii. 67*385cc6b4SJerry Jelinek * 68*385cc6b4SJerry Jelinek ******************************************************************************/ 69*385cc6b4SJerry Jelinek 70*385cc6b4SJerry Jelinek void 71*385cc6b4SJerry Jelinek AcpiUtDumpBuffer ( 72*385cc6b4SJerry Jelinek UINT8 *Buffer, 73*385cc6b4SJerry Jelinek UINT32 Count, 74*385cc6b4SJerry Jelinek UINT32 Display, 75*385cc6b4SJerry Jelinek UINT32 BaseOffset) 76*385cc6b4SJerry Jelinek { 77*385cc6b4SJerry Jelinek UINT32 i = 0; 78*385cc6b4SJerry Jelinek UINT32 j; 79*385cc6b4SJerry Jelinek UINT32 Temp32; 80*385cc6b4SJerry Jelinek UINT8 BufChar; 81*385cc6b4SJerry Jelinek 82*385cc6b4SJerry Jelinek 83*385cc6b4SJerry Jelinek if (!Buffer) 84*385cc6b4SJerry Jelinek { 85*385cc6b4SJerry Jelinek AcpiOsPrintf ("Null Buffer Pointer in DumpBuffer!\n"); 86*385cc6b4SJerry Jelinek return; 87*385cc6b4SJerry Jelinek } 88*385cc6b4SJerry Jelinek 89*385cc6b4SJerry Jelinek if ((Count < 4) || (Count & 0x01)) 90*385cc6b4SJerry Jelinek { 91*385cc6b4SJerry Jelinek Display = DB_BYTE_DISPLAY; 92*385cc6b4SJerry Jelinek } 93*385cc6b4SJerry Jelinek 94*385cc6b4SJerry Jelinek /* Nasty little dump buffer routine! */ 95*385cc6b4SJerry Jelinek 96*385cc6b4SJerry Jelinek while (i < Count) 97*385cc6b4SJerry Jelinek { 98*385cc6b4SJerry Jelinek /* Print current offset */ 99*385cc6b4SJerry Jelinek 100*385cc6b4SJerry Jelinek AcpiOsPrintf ("%7.4X: ", (BaseOffset + i)); 101*385cc6b4SJerry Jelinek 102*385cc6b4SJerry Jelinek /* Print 16 hex chars */ 103*385cc6b4SJerry Jelinek 104*385cc6b4SJerry Jelinek for (j = 0; j < 16;) 105*385cc6b4SJerry Jelinek { 106*385cc6b4SJerry Jelinek if (i + j >= Count) 107*385cc6b4SJerry Jelinek { 108*385cc6b4SJerry Jelinek /* Dump fill spaces */ 109*385cc6b4SJerry Jelinek 110*385cc6b4SJerry Jelinek AcpiOsPrintf ("%*s", ((Display * 2) + 1), " "); 111*385cc6b4SJerry Jelinek j += Display; 112*385cc6b4SJerry Jelinek continue; 113*385cc6b4SJerry Jelinek } 114*385cc6b4SJerry Jelinek 115*385cc6b4SJerry Jelinek switch (Display) 116*385cc6b4SJerry Jelinek { 117*385cc6b4SJerry Jelinek case DB_BYTE_DISPLAY: 118*385cc6b4SJerry Jelinek default: /* Default is BYTE display */ 119*385cc6b4SJerry Jelinek 120*385cc6b4SJerry Jelinek AcpiOsPrintf ("%02X ", Buffer[(ACPI_SIZE) i + j]); 121*385cc6b4SJerry Jelinek break; 122*385cc6b4SJerry Jelinek 123*385cc6b4SJerry Jelinek case DB_WORD_DISPLAY: 124*385cc6b4SJerry Jelinek 125*385cc6b4SJerry Jelinek ACPI_MOVE_16_TO_32 (&Temp32, &Buffer[(ACPI_SIZE) i + j]); 126*385cc6b4SJerry Jelinek AcpiOsPrintf ("%04X ", Temp32); 127*385cc6b4SJerry Jelinek break; 128*385cc6b4SJerry Jelinek 129*385cc6b4SJerry Jelinek case DB_DWORD_DISPLAY: 130*385cc6b4SJerry Jelinek 131*385cc6b4SJerry Jelinek ACPI_MOVE_32_TO_32 (&Temp32, &Buffer[(ACPI_SIZE) i + j]); 132*385cc6b4SJerry Jelinek AcpiOsPrintf ("%08X ", Temp32); 133*385cc6b4SJerry Jelinek break; 134*385cc6b4SJerry Jelinek 135*385cc6b4SJerry Jelinek case DB_QWORD_DISPLAY: 136*385cc6b4SJerry Jelinek 137*385cc6b4SJerry Jelinek ACPI_MOVE_32_TO_32 (&Temp32, &Buffer[(ACPI_SIZE) i + j]); 138*385cc6b4SJerry Jelinek AcpiOsPrintf ("%08X", Temp32); 139*385cc6b4SJerry Jelinek 140*385cc6b4SJerry Jelinek ACPI_MOVE_32_TO_32 (&Temp32, &Buffer[(ACPI_SIZE) i + j + 4]); 141*385cc6b4SJerry Jelinek AcpiOsPrintf ("%08X ", Temp32); 142*385cc6b4SJerry Jelinek break; 143*385cc6b4SJerry Jelinek } 144*385cc6b4SJerry Jelinek 145*385cc6b4SJerry Jelinek j += Display; 146*385cc6b4SJerry Jelinek } 147*385cc6b4SJerry Jelinek 148*385cc6b4SJerry Jelinek /* 149*385cc6b4SJerry Jelinek * Print the ASCII equivalent characters but watch out for the bad 150*385cc6b4SJerry Jelinek * unprintable ones (printable chars are 0x20 through 0x7E) 151*385cc6b4SJerry Jelinek */ 152*385cc6b4SJerry Jelinek AcpiOsPrintf (" "); 153*385cc6b4SJerry Jelinek for (j = 0; j < 16; j++) 154*385cc6b4SJerry Jelinek { 155*385cc6b4SJerry Jelinek if (i + j >= Count) 156*385cc6b4SJerry Jelinek { 157*385cc6b4SJerry Jelinek AcpiOsPrintf ("\n"); 158*385cc6b4SJerry Jelinek return; 159*385cc6b4SJerry Jelinek } 160*385cc6b4SJerry Jelinek 161*385cc6b4SJerry Jelinek /* 162*385cc6b4SJerry Jelinek * Add comment characters so rest of line is ignored when 163*385cc6b4SJerry Jelinek * compiled 164*385cc6b4SJerry Jelinek */ 165*385cc6b4SJerry Jelinek if (j == 0) 166*385cc6b4SJerry Jelinek { 167*385cc6b4SJerry Jelinek AcpiOsPrintf ("// "); 168*385cc6b4SJerry Jelinek } 169*385cc6b4SJerry Jelinek 170*385cc6b4SJerry Jelinek BufChar = Buffer[(ACPI_SIZE) i + j]; 171*385cc6b4SJerry Jelinek if (isprint (BufChar)) 172*385cc6b4SJerry Jelinek { 173*385cc6b4SJerry Jelinek AcpiOsPrintf ("%c", BufChar); 174*385cc6b4SJerry Jelinek } 175*385cc6b4SJerry Jelinek else 176*385cc6b4SJerry Jelinek { 177*385cc6b4SJerry Jelinek AcpiOsPrintf ("."); 178*385cc6b4SJerry Jelinek } 179*385cc6b4SJerry Jelinek } 180*385cc6b4SJerry Jelinek 181*385cc6b4SJerry Jelinek /* Done with that line. */ 182*385cc6b4SJerry Jelinek 183*385cc6b4SJerry Jelinek AcpiOsPrintf ("\n"); 184*385cc6b4SJerry Jelinek i += 16; 185*385cc6b4SJerry Jelinek } 186*385cc6b4SJerry Jelinek 187*385cc6b4SJerry Jelinek return; 188*385cc6b4SJerry Jelinek } 189*385cc6b4SJerry Jelinek 190*385cc6b4SJerry Jelinek 191*385cc6b4SJerry Jelinek /******************************************************************************* 192*385cc6b4SJerry Jelinek * 193*385cc6b4SJerry Jelinek * FUNCTION: AcpiUtDebugDumpBuffer 194*385cc6b4SJerry Jelinek * 195*385cc6b4SJerry Jelinek * PARAMETERS: Buffer - Buffer to dump 196*385cc6b4SJerry Jelinek * Count - Amount to dump, in bytes 197*385cc6b4SJerry Jelinek * Display - BYTE, WORD, DWORD, or QWORD display: 198*385cc6b4SJerry Jelinek * DB_BYTE_DISPLAY 199*385cc6b4SJerry Jelinek * DB_WORD_DISPLAY 200*385cc6b4SJerry Jelinek * DB_DWORD_DISPLAY 201*385cc6b4SJerry Jelinek * DB_QWORD_DISPLAY 202*385cc6b4SJerry Jelinek * ComponentID - Caller's component ID 203*385cc6b4SJerry Jelinek * 204*385cc6b4SJerry Jelinek * RETURN: None 205*385cc6b4SJerry Jelinek * 206*385cc6b4SJerry Jelinek * DESCRIPTION: Generic dump buffer in both hex and ascii. 207*385cc6b4SJerry Jelinek * 208*385cc6b4SJerry Jelinek ******************************************************************************/ 209*385cc6b4SJerry Jelinek 210*385cc6b4SJerry Jelinek void 211*385cc6b4SJerry Jelinek AcpiUtDebugDumpBuffer ( 212*385cc6b4SJerry Jelinek UINT8 *Buffer, 213*385cc6b4SJerry Jelinek UINT32 Count, 214*385cc6b4SJerry Jelinek UINT32 Display, 215*385cc6b4SJerry Jelinek UINT32 ComponentId) 216*385cc6b4SJerry Jelinek { 217*385cc6b4SJerry Jelinek 218*385cc6b4SJerry Jelinek /* Only dump the buffer if tracing is enabled */ 219*385cc6b4SJerry Jelinek 220*385cc6b4SJerry Jelinek if (!((ACPI_LV_TABLES & AcpiDbgLevel) && 221*385cc6b4SJerry Jelinek (ComponentId & AcpiDbgLayer))) 222*385cc6b4SJerry Jelinek { 223*385cc6b4SJerry Jelinek return; 224*385cc6b4SJerry Jelinek } 225*385cc6b4SJerry Jelinek 226*385cc6b4SJerry Jelinek AcpiUtDumpBuffer (Buffer, Count, Display, 0); 227*385cc6b4SJerry Jelinek } 228*385cc6b4SJerry Jelinek 229*385cc6b4SJerry Jelinek 230*385cc6b4SJerry Jelinek #ifdef ACPI_APPLICATION 231*385cc6b4SJerry Jelinek /******************************************************************************* 232*385cc6b4SJerry Jelinek * 233*385cc6b4SJerry Jelinek * FUNCTION: AcpiUtDumpBufferToFile 234*385cc6b4SJerry Jelinek * 235*385cc6b4SJerry Jelinek * PARAMETERS: File - File descriptor 236*385cc6b4SJerry Jelinek * Buffer - Buffer to dump 237*385cc6b4SJerry Jelinek * Count - Amount to dump, in bytes 238*385cc6b4SJerry Jelinek * Display - BYTE, WORD, DWORD, or QWORD display: 239*385cc6b4SJerry Jelinek * DB_BYTE_DISPLAY 240*385cc6b4SJerry Jelinek * DB_WORD_DISPLAY 241*385cc6b4SJerry Jelinek * DB_DWORD_DISPLAY 242*385cc6b4SJerry Jelinek * DB_QWORD_DISPLAY 243*385cc6b4SJerry Jelinek * BaseOffset - Beginning buffer offset (display only) 244*385cc6b4SJerry Jelinek * 245*385cc6b4SJerry Jelinek * RETURN: None 246*385cc6b4SJerry Jelinek * 247*385cc6b4SJerry Jelinek * DESCRIPTION: Generic dump buffer in both hex and ascii to a file. 248*385cc6b4SJerry Jelinek * 249*385cc6b4SJerry Jelinek ******************************************************************************/ 250*385cc6b4SJerry Jelinek 251*385cc6b4SJerry Jelinek void 252*385cc6b4SJerry Jelinek AcpiUtDumpBufferToFile ( 253*385cc6b4SJerry Jelinek ACPI_FILE File, 254*385cc6b4SJerry Jelinek UINT8 *Buffer, 255*385cc6b4SJerry Jelinek UINT32 Count, 256*385cc6b4SJerry Jelinek UINT32 Display, 257*385cc6b4SJerry Jelinek UINT32 BaseOffset) 258*385cc6b4SJerry Jelinek { 259*385cc6b4SJerry Jelinek UINT32 i = 0; 260*385cc6b4SJerry Jelinek UINT32 j; 261*385cc6b4SJerry Jelinek UINT32 Temp32; 262*385cc6b4SJerry Jelinek UINT8 BufChar; 263*385cc6b4SJerry Jelinek 264*385cc6b4SJerry Jelinek 265*385cc6b4SJerry Jelinek if (!Buffer) 266*385cc6b4SJerry Jelinek { 267*385cc6b4SJerry Jelinek AcpiUtFilePrintf (File, "Null Buffer Pointer in DumpBuffer!\n"); 268*385cc6b4SJerry Jelinek return; 269*385cc6b4SJerry Jelinek } 270*385cc6b4SJerry Jelinek 271*385cc6b4SJerry Jelinek if ((Count < 4) || (Count & 0x01)) 272*385cc6b4SJerry Jelinek { 273*385cc6b4SJerry Jelinek Display = DB_BYTE_DISPLAY; 274*385cc6b4SJerry Jelinek } 275*385cc6b4SJerry Jelinek 276*385cc6b4SJerry Jelinek /* Nasty little dump buffer routine! */ 277*385cc6b4SJerry Jelinek 278*385cc6b4SJerry Jelinek while (i < Count) 279*385cc6b4SJerry Jelinek { 280*385cc6b4SJerry Jelinek /* Print current offset */ 281*385cc6b4SJerry Jelinek 282*385cc6b4SJerry Jelinek AcpiUtFilePrintf (File, "%7.4X: ", (BaseOffset + i)); 283*385cc6b4SJerry Jelinek 284*385cc6b4SJerry Jelinek /* Print 16 hex chars */ 285*385cc6b4SJerry Jelinek 286*385cc6b4SJerry Jelinek for (j = 0; j < 16;) 287*385cc6b4SJerry Jelinek { 288*385cc6b4SJerry Jelinek if (i + j >= Count) 289*385cc6b4SJerry Jelinek { 290*385cc6b4SJerry Jelinek /* Dump fill spaces */ 291*385cc6b4SJerry Jelinek 292*385cc6b4SJerry Jelinek AcpiUtFilePrintf (File, "%*s", ((Display * 2) + 1), " "); 293*385cc6b4SJerry Jelinek j += Display; 294*385cc6b4SJerry Jelinek continue; 295*385cc6b4SJerry Jelinek } 296*385cc6b4SJerry Jelinek 297*385cc6b4SJerry Jelinek switch (Display) 298*385cc6b4SJerry Jelinek { 299*385cc6b4SJerry Jelinek case DB_BYTE_DISPLAY: 300*385cc6b4SJerry Jelinek default: /* Default is BYTE display */ 301*385cc6b4SJerry Jelinek 302*385cc6b4SJerry Jelinek AcpiUtFilePrintf (File, "%02X ", Buffer[(ACPI_SIZE) i + j]); 303*385cc6b4SJerry Jelinek break; 304*385cc6b4SJerry Jelinek 305*385cc6b4SJerry Jelinek case DB_WORD_DISPLAY: 306*385cc6b4SJerry Jelinek 307*385cc6b4SJerry Jelinek ACPI_MOVE_16_TO_32 (&Temp32, &Buffer[(ACPI_SIZE) i + j]); 308*385cc6b4SJerry Jelinek AcpiUtFilePrintf (File, "%04X ", Temp32); 309*385cc6b4SJerry Jelinek break; 310*385cc6b4SJerry Jelinek 311*385cc6b4SJerry Jelinek case DB_DWORD_DISPLAY: 312*385cc6b4SJerry Jelinek 313*385cc6b4SJerry Jelinek ACPI_MOVE_32_TO_32 (&Temp32, &Buffer[(ACPI_SIZE) i + j]); 314*385cc6b4SJerry Jelinek AcpiUtFilePrintf (File, "%08X ", Temp32); 315*385cc6b4SJerry Jelinek break; 316*385cc6b4SJerry Jelinek 317*385cc6b4SJerry Jelinek case DB_QWORD_DISPLAY: 318*385cc6b4SJerry Jelinek 319*385cc6b4SJerry Jelinek ACPI_MOVE_32_TO_32 (&Temp32, &Buffer[(ACPI_SIZE) i + j]); 320*385cc6b4SJerry Jelinek AcpiUtFilePrintf (File, "%08X", Temp32); 321*385cc6b4SJerry Jelinek 322*385cc6b4SJerry Jelinek ACPI_MOVE_32_TO_32 (&Temp32, &Buffer[(ACPI_SIZE) i + j + 4]); 323*385cc6b4SJerry Jelinek AcpiUtFilePrintf (File, "%08X ", Temp32); 324*385cc6b4SJerry Jelinek break; 325*385cc6b4SJerry Jelinek } 326*385cc6b4SJerry Jelinek 327*385cc6b4SJerry Jelinek j += Display; 328*385cc6b4SJerry Jelinek } 329*385cc6b4SJerry Jelinek 330*385cc6b4SJerry Jelinek /* 331*385cc6b4SJerry Jelinek * Print the ASCII equivalent characters but watch out for the bad 332*385cc6b4SJerry Jelinek * unprintable ones (printable chars are 0x20 through 0x7E) 333*385cc6b4SJerry Jelinek */ 334*385cc6b4SJerry Jelinek AcpiUtFilePrintf (File, " "); 335*385cc6b4SJerry Jelinek for (j = 0; j < 16; j++) 336*385cc6b4SJerry Jelinek { 337*385cc6b4SJerry Jelinek if (i + j >= Count) 338*385cc6b4SJerry Jelinek { 339*385cc6b4SJerry Jelinek AcpiUtFilePrintf (File, "\n"); 340*385cc6b4SJerry Jelinek return; 341*385cc6b4SJerry Jelinek } 342*385cc6b4SJerry Jelinek 343*385cc6b4SJerry Jelinek BufChar = Buffer[(ACPI_SIZE) i + j]; 344*385cc6b4SJerry Jelinek if (isprint (BufChar)) 345*385cc6b4SJerry Jelinek { 346*385cc6b4SJerry Jelinek AcpiUtFilePrintf (File, "%c", BufChar); 347*385cc6b4SJerry Jelinek } 348*385cc6b4SJerry Jelinek else 349*385cc6b4SJerry Jelinek { 350*385cc6b4SJerry Jelinek AcpiUtFilePrintf (File, "."); 351*385cc6b4SJerry Jelinek } 352*385cc6b4SJerry Jelinek } 353*385cc6b4SJerry Jelinek 354*385cc6b4SJerry Jelinek /* Done with that line. */ 355*385cc6b4SJerry Jelinek 356*385cc6b4SJerry Jelinek AcpiUtFilePrintf (File, "\n"); 357*385cc6b4SJerry Jelinek i += 16; 358*385cc6b4SJerry Jelinek } 359*385cc6b4SJerry Jelinek 360*385cc6b4SJerry Jelinek return; 361*385cc6b4SJerry Jelinek } 362*385cc6b4SJerry Jelinek #endif 363