mirror of https://github.com/acidanthera/audk.git
FatPkg: Change use of EFI_D_* to DEBUG_*
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3739 Update all use of EFI_D_* defines in DEBUG() macros to DEBUG_* defines. Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael Kubacki <michael.kubacki@microsoft.com> Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com>
This commit is contained in:
parent
9c7da8d804
commit
917e98f3e5
|
@ -1064,7 +1064,7 @@ FatCreateDirEnt (
|
|||
FatAddDirEnt (ODir, DirEnt);
|
||||
DirEnt->Entry.Attributes = Attributes;
|
||||
*PtrDirEnt = DirEnt;
|
||||
DEBUG ((EFI_D_INFO, "FSOpen: Created new directory entry '%S'\n", DirEnt->FileString));
|
||||
DEBUG ((DEBUG_INFO, "FSOpen: Created new directory entry '%S'\n", DirEnt->FileString));
|
||||
return FatStoreDirEnt (OFile, DirEnt);
|
||||
|
||||
Done:
|
||||
|
@ -1388,4 +1388,3 @@ FatLocateOFile (
|
|||
*PtrOFile = OFile;
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
|
@ -125,7 +125,7 @@ FatExchangeCachePage (
|
|||
RealSize = (UINTN)1 << PageAlignment;
|
||||
MaxSize = DiskCache->LimitAddress - EntryPos;
|
||||
if (MaxSize < RealSize) {
|
||||
DEBUG ((EFI_D_INFO, "FatDiskIo: Cache Page OutBound occurred! \n"));
|
||||
DEBUG ((DEBUG_INFO, "FatDiskIo: Cache Page OutBound occurred! \n"));
|
||||
RealSize = (UINTN) MaxSize;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -244,7 +244,7 @@ FatFreeClusters (
|
|||
while (!FAT_END_OF_FAT_CHAIN (Cluster)) {
|
||||
if (Cluster == FAT_CLUSTER_FREE || Cluster >= FAT_CLUSTER_SPECIAL) {
|
||||
|
||||
DEBUG ((EFI_D_INIT | EFI_D_ERROR, "FatShrinkEof: cluster chain corrupt\n"));
|
||||
DEBUG ((DEBUG_INIT | DEBUG_ERROR, "FatShrinkEof: cluster chain corrupt\n"));
|
||||
return EFI_VOLUME_CORRUPTED;
|
||||
}
|
||||
|
||||
|
@ -374,7 +374,7 @@ FatShrinkEof (
|
|||
for (CurSize = 0; CurSize < NewSize; CurSize++) {
|
||||
if (Cluster == FAT_CLUSTER_FREE || Cluster >= FAT_CLUSTER_SPECIAL) {
|
||||
|
||||
DEBUG ((EFI_D_INIT | EFI_D_ERROR, "FatShrinkEof: cluster chain corrupt\n"));
|
||||
DEBUG ((DEBUG_INIT | DEBUG_ERROR, "FatShrinkEof: cluster chain corrupt\n"));
|
||||
return EFI_VOLUME_CORRUPTED;
|
||||
}
|
||||
|
||||
|
@ -464,7 +464,7 @@ FatGrowEof (
|
|||
if (Cluster < FAT_MIN_CLUSTER || Cluster > Volume->MaxCluster + 1) {
|
||||
|
||||
DEBUG (
|
||||
(EFI_D_INIT | EFI_D_ERROR,
|
||||
(DEBUG_INIT | DEBUG_ERROR,
|
||||
"FatGrowEof: cluster chain corrupt\n")
|
||||
);
|
||||
Status = EFI_VOLUME_CORRUPTED;
|
||||
|
@ -478,7 +478,7 @@ FatGrowEof (
|
|||
|
||||
if (ClusterCount != CurSize) {
|
||||
DEBUG (
|
||||
(EFI_D_INIT | EFI_D_ERROR,
|
||||
(DEBUG_INIT | DEBUG_ERROR,
|
||||
"FatGrowEof: cluster chain size does not match file size\n")
|
||||
);
|
||||
Status = EFI_VOLUME_CORRUPTED;
|
||||
|
@ -604,7 +604,7 @@ FatOFilePosition (
|
|||
while (StartPos + ClusterSize <= Position) {
|
||||
StartPos += ClusterSize;
|
||||
if (Cluster == FAT_CLUSTER_FREE || (Cluster >= FAT_CLUSTER_SPECIAL)) {
|
||||
DEBUG ((EFI_D_INIT | EFI_D_ERROR, "FatOFilePosition:"" cluster chain corrupt\n"));
|
||||
DEBUG ((DEBUG_INIT | DEBUG_ERROR, "FatOFilePosition:"" cluster chain corrupt\n"));
|
||||
return EFI_VOLUME_CORRUPTED;
|
||||
}
|
||||
|
||||
|
@ -668,7 +668,7 @@ FatPhysicalDirSize (
|
|||
while (!FAT_END_OF_FAT_CHAIN (Cluster)) {
|
||||
if (Cluster == FAT_CLUSTER_FREE || Cluster >= FAT_CLUSTER_SPECIAL) {
|
||||
DEBUG (
|
||||
(EFI_D_INIT | EFI_D_ERROR,
|
||||
(DEBUG_INIT | DEBUG_ERROR,
|
||||
"FATDirSize: cluster chain corrupt\n")
|
||||
);
|
||||
return 0;
|
||||
|
|
|
@ -90,7 +90,7 @@ FatAllocateVolume (
|
|||
//
|
||||
// Volume installed
|
||||
//
|
||||
DEBUG ((EFI_D_INIT, "Installed Fat filesystem on %p\n", Handle));
|
||||
DEBUG ((DEBUG_INIT, "Installed Fat filesystem on %p\n", Handle));
|
||||
Volume->Valid = TRUE;
|
||||
|
||||
Done:
|
||||
|
@ -217,7 +217,7 @@ FatOpenDevice (
|
|||
Status = DiskIo->ReadDisk (DiskIo, Volume->MediaId, 0, sizeof (FatBs), &FatBs);
|
||||
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((EFI_D_INIT, "FatOpenDevice: read of part_lba failed %r\n", Status));
|
||||
DEBUG ((DEBUG_INIT, "FatOpenDevice: read of part_lba failed %r\n", Status));
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
|
|
@ -377,7 +377,7 @@ FatDiskIo (
|
|||
|
||||
if (EFI_ERROR (Status)) {
|
||||
Volume->DiskError = TRUE;
|
||||
DEBUG ((EFI_D_ERROR, "FatDiskIo: error %r\n", Status));
|
||||
DEBUG ((DEBUG_ERROR, "FatDiskIo: error %r\n", Status));
|
||||
}
|
||||
|
||||
return Status;
|
||||
|
|
|
@ -168,7 +168,7 @@ FatOFileOpen (
|
|||
|
||||
(*NewIFile)->ReadOnly = (BOOLEAN)!WriteMode;
|
||||
|
||||
DEBUG ((EFI_D_INFO, "FSOpen: Open '%S' %r\n", FileName, Status));
|
||||
DEBUG ((DEBUG_INFO, "FSOpen: Open '%S' %r\n", FileName, Status));
|
||||
return FatOFileFlush (OFile);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue