FatAddDirEnt (ODir, DirEnt);\r
DirEnt->Entry.Attributes = Attributes;\r
*PtrDirEnt = DirEnt;\r
- DEBUG ((EFI_D_INFO, "FSOpen: Created new directory entry '%S'\n", DirEnt->FileString));\r
+ DEBUG ((DEBUG_INFO, "FSOpen: Created new directory entry '%S'\n", DirEnt->FileString));\r
return FatStoreDirEnt (OFile, DirEnt);\r
\r
Done:\r
*PtrOFile = OFile;\r
return EFI_SUCCESS;\r
}\r
-\r
while (!FAT_END_OF_FAT_CHAIN (Cluster)) {\r
if (Cluster == FAT_CLUSTER_FREE || Cluster >= FAT_CLUSTER_SPECIAL) {\r
\r
- DEBUG ((EFI_D_INIT | EFI_D_ERROR, "FatShrinkEof: cluster chain corrupt\n"));\r
+ DEBUG ((DEBUG_INIT | DEBUG_ERROR, "FatShrinkEof: cluster chain corrupt\n"));\r
return EFI_VOLUME_CORRUPTED;\r
}\r
\r
for (CurSize = 0; CurSize < NewSize; CurSize++) {\r
if (Cluster == FAT_CLUSTER_FREE || Cluster >= FAT_CLUSTER_SPECIAL) {\r
\r
- DEBUG ((EFI_D_INIT | EFI_D_ERROR, "FatShrinkEof: cluster chain corrupt\n"));\r
+ DEBUG ((DEBUG_INIT | DEBUG_ERROR, "FatShrinkEof: cluster chain corrupt\n"));\r
return EFI_VOLUME_CORRUPTED;\r
}\r
\r
if (Cluster < FAT_MIN_CLUSTER || Cluster > Volume->MaxCluster + 1) {\r
\r
DEBUG (\r
- (EFI_D_INIT | EFI_D_ERROR,\r
+ (DEBUG_INIT | DEBUG_ERROR,\r
"FatGrowEof: cluster chain corrupt\n")\r
);\r
Status = EFI_VOLUME_CORRUPTED;\r
\r
if (ClusterCount != CurSize) {\r
DEBUG (\r
- (EFI_D_INIT | EFI_D_ERROR,\r
+ (DEBUG_INIT | DEBUG_ERROR,\r
"FatGrowEof: cluster chain size does not match file size\n")\r
);\r
Status = EFI_VOLUME_CORRUPTED;\r
while (StartPos + ClusterSize <= Position) {\r
StartPos += ClusterSize;\r
if (Cluster == FAT_CLUSTER_FREE || (Cluster >= FAT_CLUSTER_SPECIAL)) {\r
- DEBUG ((EFI_D_INIT | EFI_D_ERROR, "FatOFilePosition:"" cluster chain corrupt\n"));\r
+ DEBUG ((DEBUG_INIT | DEBUG_ERROR, "FatOFilePosition:"" cluster chain corrupt\n"));\r
return EFI_VOLUME_CORRUPTED;\r
}\r
\r
while (!FAT_END_OF_FAT_CHAIN (Cluster)) {\r
if (Cluster == FAT_CLUSTER_FREE || Cluster >= FAT_CLUSTER_SPECIAL) {\r
DEBUG (\r
- (EFI_D_INIT | EFI_D_ERROR,\r
+ (DEBUG_INIT | DEBUG_ERROR,\r
"FATDirSize: cluster chain corrupt\n")\r
);\r
return 0;\r
//\r
// Volume installed\r
//\r
- DEBUG ((EFI_D_INIT, "Installed Fat filesystem on %p\n", Handle));\r
+ DEBUG ((DEBUG_INIT, "Installed Fat filesystem on %p\n", Handle));\r
Volume->Valid = TRUE;\r
\r
Done:\r
Status = DiskIo->ReadDisk (DiskIo, Volume->MediaId, 0, sizeof (FatBs), &FatBs);\r
\r
if (EFI_ERROR (Status)) {\r
- DEBUG ((EFI_D_INIT, "FatOpenDevice: read of part_lba failed %r\n", Status));\r
+ DEBUG ((DEBUG_INIT, "FatOpenDevice: read of part_lba failed %r\n", Status));\r
return Status;\r
}\r
\r