public RCODE reportCheckErr(
				XFLM_CORRUPT_INFO	corruptInfo)
            {
                printCorruption( corruptInfo);
                m_bOutputLines = true;
                return( RCODE.NE_XFLM_OK);
            }
示例#2
0
        //--------------------------------------------------------------------------
        // Print out information on a corruption
        //--------------------------------------------------------------------------
        public static void printCorruption(
			XFLM_CORRUPT_INFO	corruptInfo)
        {
            System.Console.WriteLine( "\nCorruption Found: {0}, Locale: {1}",
                corruptInfo.eErrCode, corruptInfo.eErrLocale);
            if (corruptInfo.uiErrLfNumber != 0)
            {
                System.Console.WriteLine( "  Logical File Number...... {0} ({1})",
                    corruptInfo.uiErrLfNumber, corruptInfo.eErrLfType);
                System.Console.WriteLine( "  B-Tree Level............. {0}",
                    corruptInfo.uiErrBTreeLevel);
            }
            if (corruptInfo.uiErrBlkAddress != 0)
            {
                System.Console.WriteLine( "  Block Address............ {0:X})",
                    corruptInfo.uiErrBlkAddress);
            }
            if (corruptInfo.uiErrParentBlkAddress != 0)
            {
                System.Console.WriteLine( "  Parent Block Address..... {0:X})",
                    corruptInfo.uiErrParentBlkAddress);
            }
            if (corruptInfo.uiErrElmOffset != 0)
            {
                System.Console.WriteLine( "  Element Offset........... {0})",
                    corruptInfo.uiErrElmOffset);
            }
            if (corruptInfo.ulErrNodeId != 0)
            {
                System.Console.WriteLine( "  Node ID.................. {0})",
                    corruptInfo.ulErrNodeId);
            }
        }