Skip to content

Commit

Permalink
Fix size printing, closes LongSoft#18
Browse files Browse the repository at this point in the history
  • Loading branch information
vit9696 authored and rmast committed Sep 7, 2024
1 parent 8dd089e commit 1b193df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions UEFI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,8 @@ void generateUEFIIFRDump(const string &outputFile, const vector<UEFI_IFR_STRING_

// Display temp
fout << "Password: " << GetString(strings, temp->Question.Header.Prompt + strPackageOffset) << ", VarStoreInfo (VarOffset/VarName): 0x" << hex << uppercase << temp->Question.VarStoreInfo.VarOffset << ", VarStore: 0x" << temp->Question.VarStoreId << ", QuestionId: 0x" << temp->Question.QuestionId;
fout << ", MinSize: 0x" << temp->MinSize;
fout << ", MaxSize 0x" << temp->MaxSize;
fout << ", MinSize: 0x" << (unsigned)temp->MinSize;
fout << ", MaxSize 0x" << (unsigned)temp->MaxSize;
}
else if (buffer[j] == EFI_IFR_ONE_OF_OPTION_OP) {

Expand Down Expand Up @@ -649,7 +649,7 @@ void generateUEFIIFRDump(const string &outputFile, const vector<UEFI_IFR_STRING_
EFI_IFR_STRING *temp = (EFI_IFR_STRING*)&buffer[j];

// Display temp
fout << "String: " << GetString(strings, temp->Question.Header.Prompt + strPackageOffset) << ", VarStoreInfo (VarOffset/VarName): 0x" << hex << uppercase << temp->Question.VarStoreInfo.VarOffset << ", VarStore: 0x" << temp->Question.VarStoreId << ", QuestionId: 0x" << temp->Question.QuestionId << ", MinSize: 0x" << temp->MinSize << ", MaxSize: 0x" << temp->MaxSize;
fout << "String: " << GetString(strings, temp->Question.Header.Prompt + strPackageOffset) << ", VarStoreInfo (VarOffset/VarName): 0x" << hex << uppercase << temp->Question.VarStoreInfo.VarOffset << ", VarStore: 0x" << temp->Question.VarStoreId << ", QuestionId: 0x" << temp->Question.QuestionId << ", MinSize: 0x" << (unsigned) temp->MinSize << ", MaxSize: 0x" << (unsigned)temp->MaxSize;
}
else if (buffer[j] == EFI_IFR_REFRESH_OP) {

Expand Down

0 comments on commit 1b193df

Please sign in to comment.