]>
git.proxmox.com Git - mirror_edk2.git/blob - FatPkg/EnhancedFatDxe/Debug.c
3 Copyright (c) 2005, Intel Corporation. All rights reserved.<BR>
4 This program and the accompanying materials are licensed and made available
5 under the terms and conditions of the BSD License which accompanies this
6 distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
19 Debug functions for fat driver
35 Dump all the FAT Entry of the FAT table in the volume
39 Volume - The volume whose FAT info will be dumped
52 MaxIndex
= Volume
->MaxCluster
+ 2;
54 Print (L
"Dump of Fat Table, MaxCluster %x\n", MaxIndex
);
55 for (Index
= 0; Index
< MaxIndex
; Index
++) {
56 EntryValue
= FatGetFatEntry (Volume
, Index
);
57 if (EntryValue
!= FAT_CLUSTER_FREE
) {
60 case FAT_CLUSTER_RESERVED
:
61 Pointer
= L
"RESREVED";
69 if (FAT_END_OF_FAT_CHAIN (EntryValue
)) {
73 if (Pointer
!= NULL
) {
74 Print (L
"Entry %x = %s\n", Index
, Pointer
);
76 Print (L
"Entry %x = %x\n", Index
, EntryValue
);