mirror of
https://github.com/LongSoft/UEFITool.git
synced 2025-06-04 08:59:44 -04:00
Bugfix for UE 0.12.2
- some testing code leaked to UE, reverted
This commit is contained in:
parent
589dbd5719
commit
4381bc6103
6 changed files with 77 additions and 82 deletions
|
@ -55,7 +55,7 @@ USTATUS FfsReport::generateRecursive(std::vector<UString> & report, UModelIndex
|
|||
UString(" ") + itemTypeToUString(model->type(index)).leftJustified(16)
|
||||
+ UString("| ") + itemSubtypeToUString(model->type(index), model->subtype(index)).leftJustified(22)
|
||||
+ usprintf("| %08X | %08X | ", data.size(), crc)
|
||||
+ UString('-', level) + UString(" ") + model->name(index) + (text.isEmpty() ? UString("") : UString(" | ") + text)
|
||||
+ urepeated('-', level) + UString(" ") + model->name(index) + (text.isEmpty() ? UString("") : UString(" | ") + text)
|
||||
);
|
||||
|
||||
// Information on child items
|
||||
|
|
|
@ -23,6 +23,11 @@ UString usprintf(const char* fmt, ...)
|
|||
va_end(vl);
|
||||
return msg;
|
||||
};
|
||||
|
||||
UString urepeated(char c, int len)
|
||||
{
|
||||
return UString(len, c);
|
||||
}
|
||||
#else
|
||||
/* Give WATCOM C/C++, MSVC some latitude for their non-support of vsnprintf */
|
||||
#if defined(__WATCOMC__) || defined(_MSC_VER)
|
||||
|
@ -91,4 +96,9 @@ UString usprintf(const char* fmt, ...)
|
|||
|
||||
return msg;
|
||||
}
|
||||
|
||||
UString urepeated(char c, int len)
|
||||
{
|
||||
return UString(c, len);
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -26,5 +26,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||
#endif // QT_CORE_LIB
|
||||
|
||||
UString usprintf(const char* fmt, ...);
|
||||
UString urepeated(char c, int len);
|
||||
|
||||
#endif // USTRING_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue