Skip to content

Commit

Permalink
minor update for debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
manatails committed Oct 4, 2021
1 parent 0a45d97 commit b8f0bab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions UefiSevenPkg/Platform/UefiSeven/Filesystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,13 +263,13 @@ FileDelete (
return FALSE;
}

// Try to open file for deleting.
// Try to open file for deletion.
Status = VolumeRoot->Open (VolumeRoot, &RequestedFile, FilePath, EFI_FILE_MODE_READ | EFI_FILE_MODE_WRITE, 0);
if (EFI_ERROR (Status)) {
PrintDebug (L"Unable to open file '%s' for deleting (error: %r)\n", FilePath, Status);
PrintDebug (L"Unable to open file '%s' for deletion (error: %r)\n", FilePath, Status);
return FALSE;
} else {
PrintDebug (L"Opened file '%s' for deleting\n", FilePath);
PrintDebug (L"Opened file '%s' for deletion\n", FilePath);
FileInfo = GetFileInfo (RequestedFile);
if (FileInfo != NULL) {
// Delete if its not directory.
Expand Down
1 change: 1 addition & 0 deletions UefiSevenPkg/Platform/UefiSeven/UefiSeven.c
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,7 @@ UefiMain (
mLogToFile = FALSE;
Status = GetFilenameInSameDirectory (mEfiFilePath, L"UefiSeven.log", (VOID **)&LogFilePath);
if (!EFI_ERROR (Status)) {
PrintDebug (L"Clearing previous log file\n");
FileDelete (mVolumeRoot, LogFilePath);

Status = mVolumeRoot->Open (
Expand Down

0 comments on commit b8f0bab

Please sign in to comment.