fix uppercase hex string common funcs
This commit is contained in:
@@ -26,11 +26,11 @@ std::string UppercaseHexByte(uint8_t byte, bool leading) {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
std::string UppercaseHexWord(uint16_t word) {
|
std::string UppercaseHexWord(uint16_t word) {
|
||||||
std::string result = absl::StrFormat("0x%04x", word);
|
std::string result = absl::StrFormat("0x%04X", word);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
std::string UppercaseHexLong(uint32_t dword) {
|
std::string UppercaseHexLong(uint32_t dword) {
|
||||||
std::string result = absl::StrFormat("0x%08x", dword);
|
std::string result = absl::StrFormat("0x%06X", dword);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user